I think you just type in the command without piping it.
I ran a similar script that pipes to bash, but removing the pipe so it is just curl and the URL, the file shows in the terminal as if I had just ran a cat command.
For instance, this command:
curl https://get.pimoroni.com/pantilthat | bash
Gave me this result:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 38706 100 38706 0 0 47087 0 --:--:-- --:--:-- --:--:-- 47087
This script will install everything needed to use
Pan-Tilt HAT
Always be careful when running scripts and commands copied
from the internet. Ensure they are from a trusted source.
If you want to see what this script does before running it,
you should run: 'curl https://get.pimoroni.com/pantilthat'
Note: Pan-Tilt HAT requires I2C communication
Do you wish to continue? [y/N]
And running the following allowed me to view the file in my terminal:
curl https://get.pimoroni.com/pantilthat
I know its been almost 9 years, but I hope that helps you or anyone else who may have the same question!
less
or something, and then ask you if you wanted to run it. I can't see that that would be any better than just downloading the script, viewing it, and then running it if it seemed OK. IMO it would be worse, it wouldn't offer any advantage but would remove the flexibility you get from just working in your shell. – cas Aug 25 '12 at 01:22