scripts: use set -eu by default
Instead of just set -e
. -u
causes an error when a undefined variable is used.
If a non-set variable is legal, use syntax ${var:-}
, which will result in ""
if var is not set.
See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06.