created on | January 18, 2022 |
Check shell scripts with ‘shellcheck’
Test shell scripts with the ‘-x’ switch:
This will print the lines of the scripts that are executed, the value of the variables that are evaluated and the output of the expressions. If a shell script is executed with the ‘-x’ switch, all shell scripts that are executed within this script are executed with ‘-x’.