From: David Levine Date: Sun, 10 Apr 2016 15:15:42 +0000 (-0400) Subject: Quoted variables in trap so that distcheck doesn't trip over them if X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/9a4a3f74cd7130e1fd0cdaabdfa56af96bf04872?hp=c6a592d09896f96ec1d3e9358699b9af26b0227f Quoted variables in trap so that distcheck doesn't trip over them if not set. --- diff --git a/test/common.sh.in b/test/common.sh.in index 3a216584..8f9e1988 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -284,7 +284,7 @@ setup_test () export PATH # clean old test data - trap "test -z $MH_TEST_NOCLEANUP && (cd $MH_TEST_DIR; rm -rf '$MH_TEST_DIR/Mail')" 0 + trap "test -z '$MH_TEST_NOCLEANUP' && (cd '$MH_TEST_DIR'; rm -rf '$MH_TEST_DIR/Mail')" 0 # setup test data mkdir -p "$MH_TEST_DIR/Mail" || exit 1 cat > "$MH" <