3 ms·
If process in the middle exists with non zero exit code, your whole script won't exit with non zero exit code. You have to collect exit codes and check them.
by mirekrusin 6y ago
If process in the middle exists with non zero exit code, your whole script won't exit with non zero exit code. You have to collect exit codes and check them.
- curryst 6y agoThe whole thing will exit if any of those fail because of the double ampersands. Semicolons are the ones that ignore exit codes. Things like this are why I don't love bash. Whether a script will fail if a step fails is too important to be hidden behind a single character change in a place most people ignore.