Is there some option I can give to just check the syntax of a [bash] shell script to check the syntax of it, but not actually execute anything nor cause any potential damage?
Bash – Debugging shell scripts: Syntax checking without executing
bashshell-scripttesting
Best Answer
From the
bash(1)
man page: