Use and silent first debug

This commit is contained in:
2023-01-11 12:23:45 -05:00
parent 5c4795ce42
commit e0619ba8a3

View File

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