3 ms·
Unless you're running with -u, which you should be, in which case it will blow up on an undefined variable. To treat undefined as empty, you want: if [[ -z
by twic 13y ago
Unless you're running with -u, which you should be, in which case it will blow up on an undefined variable. To treat undefined as empty, you want:
if [[ -z "${VARIABLE:-}" ]]