]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix SC2064
authorrl1987 <rl1987@sdf.lonestar.org>
Fri, 1 Feb 2019 19:26:29 +0000 (21:26 +0200)
committerrl1987 <rl1987@sdf.lonestar.org>
Fri, 1 Feb 2019 19:26:29 +0000 (21:26 +0200)
src/test/test_keygen.sh

index cc3839783632687eeece23a49b307b1de5e06f96..849d159af5e8cbceb330d25aac835fc6df62670e 100755 (executable)
@@ -77,7 +77,7 @@ if [ ! -d "$DATA_DIR" ]; then
   echo "Failure: mktemp invocation result doesn't point to directory" >&2
   exit 3
 fi
-trap "rm -rf '$DATA_DIR'" 0
+trap 'rm -rf "$DATA_DIR"' 0
 
 # Use an absolute path for this or Tor will complain
 DATA_DIR=$(cd "${DATA_DIR}" && pwd)