diff --git a/test/with_tmp_db b/test/with_tmp_db index 9e7d54901..23a0a6551 100755 --- a/test/with_tmp_db +++ b/test/with_tmp_db @@ -40,7 +40,7 @@ tmpdir="$(mktemp -d)" if [ -n "$keeptmp" ]; then echo "The temporary directory at $tmpdir will be preserved after exit." else - trap "rm -rf tmpdir" sigint sigterm exit + trap 'rm -rf "$tmpdir"' sigint sigterm exit fi dblog="$tmpdir/db.log"