fixed to pass along exit value also
authorChris Koeritz <fred@gruntose.com>
Thu, 21 Jan 2021 16:36:18 +0000 (16:36 +0000)
committerChris Koeritz <fred@gruntose.com>
Thu, 21 Jan 2021 16:36:18 +0000 (16:36 +0000)
scripts/testing/squelch_unless_error.sh

index b59ca5a197808d81893d8a496bd3896d166c8462..696abd731776b74bbcc647555263c26aab6202de 100644 (file)
@@ -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