]> arthur.barton.de Git - bup.git/blobdiff - t/test-meta.sh
Quote EXIT cleanup trap properly in test-meta.sh.
[bup.git] / 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"