3 ms·
TIL that this quick trick [1] also would have prevented this: ${STEAMROOT:?} ...where :? throws an error if the variable is unset or empty. (Still far too s
by jakejarvis 8y ago
TIL that this quick trick [1] also would have prevented this:
${STEAMROOT:?}
...where :? throws an error if the variable is unset or empty. (Still far too scary for my taste, though!)
[1] https://github.com/koalaman/shellcheck/wiki/SC2115 https://github.com/koalaman/shellcheck/wiki/SC2115