From 37c6cdc5370b3151ca609d54361596fddc44e3ae Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 21 Jan 2021 16:36:18 +0000 Subject: [PATCH] fixed to pass along exit value also --- scripts/testing/squelch_unless_error.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/testing/squelch_unless_error.sh b/scripts/testing/squelch_unless_error.sh index b59ca5a1..696abd73 100644 --- a/scripts/testing/squelch_unless_error.sh +++ b/scripts/testing/squelch_unless_error.sh @@ -23,4 +23,7 @@ fi # clean up. \rm "$newout" "$newerr" +# pass along the error code we saw, whether success or failure, so that this command has same +# exit result as the original would have. +exit $retval -- 2.34.1