You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with premature exit is due to the way we run the script with the one liner.
With
curl -L www.aaa.com | bash
the contents of the file are connected to the std_in of bash. That becomes a problem when we run commands that capture the std_in like apt-get install.
The problem with premature exit is due to the way we run the script with the one liner.
With
the contents of the file are connected to the std_in of bash. That becomes a problem when we run commands that capture the std_in like
apt-get install
.The suggested way to run it is:
bash <(curl -L www.aaa.com)
Then it's run like a script file.
See:
http://stackoverflow.com/questions/5735666/execute-bash-script-from-url
http://askubuntu.com/questions/638686/apt-get-exits-bash-script-after-installing-packages
http://askubuntu.com/questions/372810/how-to-prevent-script-not-to-stop-after-apt-get
The text was updated successfully, but these errors were encountered: