From a968c01ff777345f258e936ad69f625d10aea694 Mon Sep 17 00:00:00 2001 From: Steve Schmerler Date: Thu, 27 Jul 2023 19:42:28 +0200 Subject: [PATCH] Fix silent fail when grep doesn't find a match This can happen when e.g. the `find` before produces an empty result. --- .../total_energy_module/build_total_energy_module.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external_modules/total_energy_module/build_total_energy_module.sh b/external_modules/total_energy_module/build_total_energy_module.sh index a0ce3b9d2..57c1b252b 100755 --- a/external_modules/total_energy_module/build_total_energy_module.sh +++ b/external_modules/total_energy_module/build_total_energy_module.sh @@ -6,7 +6,7 @@ # or # $ F2PY=/usr/bin/f2py3 ./this.sh -set -euo pipefail +set -u err(){ echo "error $@"