From 3a2e3b9055b802dbc1f08e8935d486b28b834e51 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 20 Jun 2017 19:33:38 +0200 Subject: reproducible Debian: correctly get exit code Signed-off-by: Holger Levsen --- bin/reproducible_node_health_check.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2