It helps you run a bash shell script with URL quickly, by automatically downloading and running the script.
NOTE that this command does NOT run the script on the remote server.
$ curl -fsSL https://git.io/sh-remote | bash
It is basically same as sh
command, but simply change sh
to shr
and local path of the script to remote URL.
$ shr https://raw.githubusercontent.com/parkjs814/sh-remote/master/test/runme.sh
You can also use shr
with arguments, which will be passed to sh
command
$ shr https://raw.githubusercontent.com/parkjs814/sh-remote/master/test/runme.sh --name Jason