Skip to content

Commit 7f0dc09

Browse files
committed
Corrected the argExists function
1 parent 710dda0 commit 7f0dc09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

argument-parser.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ do
9797
done
9898

9999
argExists() {
100-
if [ ${args["$1"]+abc} ]; then
101-
return 0
102-
else
100+
if [ -z ${args["$1"]+abc} ]; then
103101
return 1
102+
else
103+
return 0
104104
fi
105105
}
106106

0 commit comments

Comments
 (0)