4 ms·
<<if [ "${NAME:-}" = "Kevin" ] will set $NAME to be empty if it's not declared >> The OP probably meant "${NAME:=}" not "${NAME:-}"
by ravoori 6y ago
<<if [ "${NAME:-}" = "Kevin" ] will set $NAME to be empty if it's not declared
>>
The OP probably meant "${NAME:=}" not "${NAME:-}"