[tor-commits] [chutney/master] shellcheck: Fix warnings in the chutney script

teor at torproject.org teor at torproject.org
Fri Apr 12 02:43:09 UTC 2019


commit 40fd44a8ba26144b83c0e0a8e6caff03df717ec4
Author: teor <teor at torproject.org>
Date:   Mon Apr 8 12:00:45 2019 +1000

    shellcheck: Fix warnings in the chutney script
    
    Part of 30065.
---
 chutney | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/chutney b/chutney
index fcd5ec5..e6fef7e 100755
--- a/chutney
+++ b/chutney
@@ -3,11 +3,13 @@
 set -o errexit
 set -o nounset
 
-export PYTHONPATH="$(dirname "${0}")/lib:$(dirname "${0}")/scripts:${PYTHONPATH-}"
+PYTHONPATH="$(dirname "${0}")/lib:$(dirname "${0}")/scripts:${PYTHONPATH-}"
+export PYTHONPATH
 # make a last-ditch effort to set CHUTNEY_PATH based on this script's location
 if ! test "${CHUTNEY_PATH+y}"
 then
-    export CHUTNEY_PATH="`dirname $0`"
+    CHUTNEY_PATH=$(dirname "$0")
+    export CHUTNEY_PATH
 fi
 
 binaries="python python3 python2"





More information about the tor-commits mailing list