Use absolute path for datadir in test_keygen.sh

This commit is contained in:
Nick Mathewson 2015-09-03 14:53:50 -04:00
parent b63034ce3e
commit 604a18e680

View File

@ -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"