When running a shell script, suppose an error occurs at one line. Are the other lines executed or does the execution of the script stop? I have a script I want to execute with many commands over the week end and I want to make sure if an error occurs at a line, the other lines are executed.
Execution continues regardless of errors within commands (exit status isn't 0) unless you explicitly specify to stop execution in the event of an error (
As a general note, if the subsequent commands depend on any of the previous commands being run correctly, then those won't work correctly.