From b5f4a2b9dc411ac5570ec9271910e2298f6ac6a1 Mon Sep 17 00:00:00 2001 From: "Benjamin R. White" Date: Tue, 10 Jan 2017 13:54:28 +0000 Subject: [PATCH] fix(quick-start-test): correct error code returned from trap --- bin/quick-start-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/quick-start-test.sh b/bin/quick-start-test.sh index bf789a5f3..09964642e 100755 --- a/bin/quick-start-test.sh +++ b/bin/quick-start-test.sh @@ -2,7 +2,7 @@ HOODIE_FOLDER=$(pwd) TEMP_ROOT=$(mktemp -d) pushd $TEMP_ROOT -trap "{ popd; rm -rf $TEMP_ROOT; exit 255; }" EXIT +trap "{ CODE=$?; popd; rm -rf $TEMP_ROOT; exit $CODE; }" EXIT ## docs/guides/quickstart.rst:41