]> arthur.barton.de Git - bup.git/commitdiff
Quote EXIT cleanup trap properly in test-meta.sh.
authorRob Browning <rlb@defaultvalue.org>
Wed, 18 Jul 2012 02:26:23 +0000 (21:26 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 22 Dec 2012 19:32:08 +0000 (13:32 -0600)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
t/test-meta.sh

index ba7e218c959e3ebdb3f84aad448e587a7145d9c6..55c363d8361eacdf63d74849e7232adf73ec1718 100755 (executable)
@@ -50,7 +50,7 @@ compare-trees()
         set -e
         set -o pipefail
         tmpfile="$(mktemp)"
-        trap "rm -rf ${tmpfile}" EXIT
+        trap "rm -rf '${tmpfile}'" EXIT
         rsync -ni -aHAX "$1" "$2" > "${tmpfile}"
         if test $(wc -l < "${tmpfile}") != 0; then
             echo "ERROR: detected differences between $1 and $2"