the library lookup if an argument is given when script is called on cli, like ./basherr.sh -d. If not, you can enable/disable it on any line in your script by calling bs_debug (bool).
An example can be found in source of ./basherr.sh in git repo. The function will create a new log for every runtime, so you can easily debug between edits.
Done
How it works
the library lookup if an argument is given when script is called on cli, like
./basherr.sh -d
. If not, you can enable/disable it on any line in your script by callingbs_debug (bool)
.An example can be found in source of
./basherr.sh
in git repo. The function will create a new log for every runtime, so you can easily debug between edits.