Parcourir la source

Use absolute path for datadir in test_keygen.sh

Nick Mathewson il y a 9 ans
Parent
commit
604a18e680
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/test/test_keygen.sh

+ 3 - 0
src/test/test_keygen.sh

@@ -65,6 +65,9 @@ if [ ! -d "$DATA_DIR" ]; then
 fi
 trap "rm -rf '$DATA_DIR'" 0
 
+# Use an absolute path for this or Tor will complain
+DATA_DIR=`cd "${DATA_DIR}" && pwd`
+
 touch "${DATA_DIR}/empty_torrc"
 
 QUIETLY="--hush"