Args: Fix regex

This commit is contained in:
Dylan Araps 2016-12-16 12:50:39 +11:00
parent 70e74768b5
commit 3bbe52b93b

View file

@ -3133,7 +3133,7 @@ exit 1
get_args() { get_args() {
# Check the commandline flags early for '--config none/off' # Check the commandline flags early for '--config none/off'
[[ "$@" =~ \-\-config\ ?(off|none) ]] || get_user_config 2>/dev/null [[ "$@" =~ --config\ ?(off|none) ]] || get_user_config 2>/dev/null
while [[ "$1" ]]; do while [[ "$1" ]]; do
case "$1" in case "$1" in