From f9647ec2a5b4b63c6721fb65576b1857ca31148b Mon Sep 17 00:00:00 2001 From: Carlo Corradini Date: Tue, 22 Aug 2023 16:48:24 +0200 Subject: [PATCH] chore(check.sh): fix unset --- check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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