Right now the install script (and others) will chug merrily along even if an error occurs.
Partially to fix this small issue and partially to get used to the collaboration workflow, I've fixed this up in the main install/uninstall scripts. Haven't touched the scripts in the examples or those which are rightly the responsibility of LAMMPS or other third parties.
Fix is to add:
set -euo pipefail right after the shebang
convert cd <target> commands to cd <target> || exit 1
Probably a good idea to open an issue on scripts passing/failing shellcheck, too. If only to document any wontfix reasoning. Maybe look into a git hook.
Right now the install script (and others) will chug merrily along even if an error occurs.
Partially to fix this small issue and partially to get used to the collaboration workflow, I've fixed this up in the main install/uninstall scripts. Haven't touched the scripts in the examples or those which are rightly the responsibility of LAMMPS or other third parties.
Fix is to add:
set -euo pipefail
right after the shebangcd <target>
commands tocd <target> || exit 1
Supporting docs:
Probably a good idea to open an issue on scripts passing/failing shellcheck, too. If only to document any
wontfix
reasoning. Maybe look into a git hook.