Browse Source

Use and silent first debug

bryan 2 years ago
parent
commit
e0619ba8a3
1 changed files with 3 additions and 2 deletions
  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 "$@"