]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Put error messages to stderr
authorSebastian Hahn <sebastian@torproject.org>
Wed, 11 Feb 2015 20:43:41 +0000 (21:43 +0100)
committerNick Mathewson <nickm@torproject.org>
Wed, 11 Feb 2015 20:59:34 +0000 (15:59 -0500)
Thanks weasel :)

Also remove stray debug output

src/test/zero_length_keys.sh

index eca750c956fb2fbef09f4366218fc2a2318e546f..81ba3e0e17cc245972e0480a520766f2d4ba7e38 100755 (executable)
@@ -27,12 +27,11 @@ fi
 
 DATA_DIR=`mktemp -d -t tor_zero_length_keys.XXXXXX`
 if [ -z "$DATA_DIR" ]; then
-  echo "Failure: mktemp invocation returned empty string"
+  echo "Failure: mktemp invocation returned empty string" >&2
   exit 3
 fi
 if [ ! -d "$DATA_DIR" ]; then
-    echo "$DATA_DIR"
-  echo "Failure: mktemp invocation result doesn't point to directory"
+  echo "Failure: mktemp invocation result doesn't point to directory" >&2
   exit 3
 fi
 trap "rm -rf '$DATA_DIR'" 0
@@ -43,7 +42,7 @@ TOR="./src/or/tor --hush --DisableNetwork 1 --ShutdownWaitLength 0 --ORPort 1234
 
 if [ -s "$DATA_DIR"/keys/secret_id_key ] && [ -s "$DATA_DIR"/keys/secret_onion_key ] &&
    [ -s "$DATA_DIR"/keys/secret_onion_key_ntor ]; then
-  echo "Failure: Previous tor keys present in tor data directory"
+  echo "Failure: Previous tor keys present in tor data directory" >&2
   exit 3
 else
   echo "Generating initial tor keys"