This commit is contained in:
Brandon Maier 2025-04-04 21:57:23 +00:00 committed by GitHub
commit 21b9c666fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -181,7 +181,7 @@ shiftval() {
fi
# Error if no value is provided.
if [[ "$OPT_VAL" =~ -.* ]]; then
if [[ "$OPT_VAL" =~ ^-.* ]]; then
printc "%{RED}%s: '%s' requires a value%{CLEAR}\n" "$PROGRAM" "$ARG"
exit 1
fi