Open asbarron opened 5 years ago
Fix quoted variables and negated test -zresulting in a needless double-negative. You can just use the -n operator instead:
-z
-n
# Identical tests to verify that a value is assigned [ ! -z foo ] # Not has no value [ -n foo ] # Has value
Fix quoted variables and negated test
-z
resulting in a needless double-negative. You can just use the-n
operator instead: