I am running Linux.
I'm writing an installer in Bash for an application I wrote.
The installer needs to be able to download different Bash scripts and run them automatically?
How would I go about this?
It comes pre-installed on most Linux OSs.
It works as simply as typing
In your case, you'll probably want to do something along these lines:
wget https://www.example.com/files/coreinstall.sh -O new-filename.sh chmod +x new-filename.sh ./new-filename.sh
Be careful not to mistype the URL, because the above script will download and run whatever is at that URL.
wget is not installed and
curl is available, use it instead of
-o (lower-case) instead of the
curl https://www.example.com/files/coreinstall.sh -o new-filename.sh