Bash: Run Script on the Fly
From WikiMLT
Example
The curl
command will fetch the installation script from the repository github.com/mrbvrz/segoe–ui–linux and by the help of the process substitution operator <(…)
(which will be treated as pseudo-file) the output of curl
will be executed via bash
.
bash <(curl -s https://example.com/path-to/raw/install.sh)
curl -s https://example.com/path-to/raw/install.sh | bash -s arg1 arg2
References
- Stack Overflow: Execute bash script from URL
- Ask Ubuntu: "/dev/fd/63 No such file or directory"