3 ms·
I had to deconstruct that since I only use #!/bin/sh -xe -e : exit immediately if statement has non-zero exit status -x : echo each command -u : treat unset
by m463 6y ago
I had to deconstruct that since I only use #!/bin/sh -xe
-e : exit immediately if statement has non-zero exit status
-x : echo each command
-u : treat unset variables as an error
-o pipefail : If set, the return value of a pipeline is the value of the last (rightmost) command to exit with a non-zero status, or zero if all commands in the pipeline exit successfully.
that is actually much better than -xe, thank you, I learned something