Why not just:
curl ... | less curl ... | lessEDIT More info. Yes this is better than curl ... | sh. But less has a lot of functionality (more than you'd expect) and a carefully written script could exploit some of this.
Basically the tldr is that gnu less is a program that has been engineered to do a lot of things over the years and this has created attack surfaces which mean that if someone was to curl .... | less on a carefully designed payload it could allow the payload to obtain a shell.
I wasn't saying that it isn't safer just that it isn't totally safe.
Thats generally what I do when I encounter the curl -> bash instructions on the web.