[tor-commits] [chutney/master] Avoid using "unset" now that we have -o nounset enabled.

nickm at torproject.org nickm at torproject.org
Fri Jun 26 13:34:43 UTC 2020


commit 830566f3b49e5fcd0251ee7aabcb07be7651408f
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Jun 24 14:06:11 2020 -0400

    Avoid using "unset" now that we have -o nounset enabled.
---
 tools/test-network.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/test-network.sh b/tools/test-network.sh
index 4cec921..c221db4 100755
--- a/tools/test-network.sh
+++ b/tools/test-network.sh
@@ -267,7 +267,7 @@ if [ ! -d "${TOR_DIR:-}" ]; then
         export TOR_DIR="$PWD/../tor"
     else
         $ECHO "$myname: no \$TOR_DIR, chutney will use \$CHUTNEY_TOR and \$CHUTNEY_TOR_GENCERT as tor binary paths, or search \$PATH for tor binary names"
-        unset TOR_DIR
+        export TOR_DIR=""
     fi
 fi
 





More information about the tor-commits mailing list