2 ms·
1. use shellcheck 2. use shfmt (to format your shell script) 3. set -euo pipefail (much shorter) my slight complain about bash is that it disallows sp
by synergy20 4y ago
1. use shellcheck
2. use shfmt (to format your shell script)
3. set -euo pipefail (much shorter)
my slight complain about bash is that it disallows space around =, X=100 is OK, X = 100 is not, sometimes I just make mistakes like that.