I'm not sure about this criticism — the script is written to be as simple as possible and also has a comment about this if you do inspect it as you suggest.
# This is a short script to install the latest version of the sshx binary.
#
# It's meant to be as simple as possible, so if you're not happy hardcoding a
# `curl | sh` pipe in your application, you can just download the binary
# directly with the appropriate URL for your architecture.
You're also welcome to install it any way you choose! The code is fully open-source, and it has straightforward instructions to build from source.