I am using set -e to stop execution of a script on first error.
set -e
The problem is that this does not tell me what went wrong.
How can update a bash scr
set -ex will show (all) lines as they are executed and stop at the first command returning nonzero (not as part of if/while/until constructs).
set -ex
if/while/until