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
welcome :)
you can also disable and re-enable this behaviour when you expect a command to produce a non-zero exit, by surrounding the command with a set +e and set -e.
set -e
normal_command
normal_command
set +e
command_with_non_zero_exit
set -e
normal_command
normal_command
donnemartin
changed the title
for all installation scripts, exit immediately if a command exits with a non-zero status
For all installation scripts, exit immediately if a command exits with a non-zero status
Jun 11, 2016
it's important for a script to exit immediately if a command exits with a non-zero status,
otherwise results are unpredictable.
this can be achieved by adding
set -e
at the beginning of all bash scriptsThe text was updated successfully, but these errors were encountered: