mirror of
https://github.com/eth-p/bat-extras.git
synced 2026-09-10 07:16:25 -04:00
Merge fe1aa1d16d into 3860f0f148
This commit is contained in:
commit
21b9c666fa
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue