diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-06-20 19:33:38 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-20 19:33:38 +0200 |
commit | 3a2e3b9055b802dbc1f08e8935d486b28b834e51 (patch) | |
tree | ac259e53a8a0a4e9cf8c713e088d2bdc71b7e333 | |
parent | 414349a1679d0f3b49c90732f066ea28dfdda107 (diff) | |
download | jenkins.debian.net-3a2e3b9055b802dbc1f08e8935d486b28b834e51.tar.xz |
reproducible Debian: correctly get exit code
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_node_health_check.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_node_health_check.sh b/bin/reproducible_node_health_check.sh index 2e13f4d7..41139580 100755 --- a/bin/reproducible_node_health_check.sh +++ b/bin/reproducible_node_health_check.sh @@ -78,7 +78,8 @@ fi # check for hanging mounts # echo "$(date -u) - testing whether running 'mount' takes forever..." -TIMEOUT=$(timeout 15 mount) +timeout 15 mount +TIMEOUT=$? if [ $TIMEOUT -ne 0 ] ; then echo "$(date -u) - running 'mount' takes forever, giving up." exit 1 |