Is there a simple command you can use to read the contents of the script (pipe) before it's sent to sh? Something like:
curl ... | less-and-maybe-cancel | sh curl ... | less-and-maybe-cancel | shIf you want to cancel, just erase the file. Or `:cq` in vim probably works as well.
curl ... | vim -
Then, you can review the script, maybe tweak it a little, and you can send it to sh's stdin by running :w !sh
Or you can just quit Vim (:q! or ZQ) and nothing happens.