sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
What's the best way to do it? Or the most simple/pure? Is there maybe a blog post outlining the different ways?
1–4 of 4 posts
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
What's the best way to do it? Or the most simple/pure? Is there maybe a blog post outlining the different ways?
Make your build process dumb and installation process even dumber. The former should just run the compiler (as opposed to downloading and installing semi-related stuff; this belongs elsewhere), and the latter should just copy files. This way somebody could easily make a tarball or RPM/DEB package, which allows for repeatable installations. Running sh&t from the internets doesn't allow to reliably build packages and install software.
Don't assume that your users are idiots who cannot run two or three commands in terminal.
curl https://example.com/file.sh | bash
If your shell script needs sudo access, just:
curl https://example.com/file.sh | sudo bash