One can debug Bash Scripts by with xtrace by running the script with
bash -x <script name>, which will show which function was executed and with which values.
One can add the verbose flag -v to show the entire code for the function that ran.
One can debug Bash Scripts by with xtrace by running the script with
bash -x <script name>, which will show which function was executed and with which values.
One can add the verbose flag -v to show the entire code for the function that ran.