Closed silverjam closed 4 years ago
Using set -x and the $? construct to detect failures doesn't work, instead use if cmd ... to detect if something failed.
set -x
$?
if cmd ...
i mean, now, you could make each line an elif and remove all the nesting.
elif
Using
set -x
and the$?
construct to detect failures doesn't work, instead useif cmd ...
to detect if something failed.