chiark / gitweb /
run-tests: Don't set -x until option parsing is done
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 1 Nov 2015 12:52:16 +0000 (13:52 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 1 Nov 2015 13:09:11 +0000 (14:09 +0100)
tests/run-tests

index eb14493388f311dda1c0e96ef08fd05416ea30f8..da6dfde7c5455690474e2b8c2af508c156eed8dc 100755 (executable)
@@ -1,7 +1,6 @@
 #!/bin/bash
 
 set -e # quit script on error
-set -x # show each command as it is executed
 
 echo_header() {
     { echo -e "==============================================================================\n$1"; } 2>/dev/null
@@ -87,6 +86,7 @@ if [ -z $python ]; then
     python=python2
 fi
 
+set -x # show each command as it is executed
 
 #------------------------------------------------------------------------------#
 echo_header "run commit hooks"