Bash Scripting - Error Handling
You want a script to exit on error but allow a specific command to fail without stopping. How do you write it?
set -e to make the script exit on any error.command2 || true so failure of command2 does not cause exit.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions