diff --git a/check.sh b/check.sh index 6bd7b6c..8fb2615 100755 --- a/check.sh +++ b/check.sh @@ -157,7 +157,7 @@ EOF # @param $1 Argument name # @param $2 Argument value _parse_args_assert_value() { - [ -n "$2" ] || ERROR "Argument '$1' requires a non-empty value" + [ -n "${2+x}" ] || ERROR "Argument '$1' requires a non-empty value" } # Parse command line arguments