Selaa lähdekoodia

Use and silent first debug

bryan 2 vuotta sitten
vanhempi
commit
e0619ba8a3
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      installJRMC

+ 3 - 2
installJRMC

@@ -1646,6 +1646,7 @@ tests() {
 
 
 main() {
+    debug "Running: ${FUNCNAME[0]} $*"
 
     init
 
@@ -1773,7 +1774,7 @@ main() {
     # done
 }
 
-# Quickly turn debugging on (catch for real with getopt in parseInput())
-[[ " $* " =~ ( --debug | -d ) ]] && echo "First Debugging on!" && DEBUG=1
+# Quickly turn debugging on, also use getopt in parseInput()
+[[ " $* " =~ ( --debug | -d ) ]] && DEBUG=1
 
 main "$@"