mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
bug fix, changed $opt to $OPTARG
This commit is contained in:
parent
7e4c53a7e5
commit
e956ee03f3
4
inxi
4
inxi
|
@ -438,7 +438,7 @@ get_parameters()
|
||||||
set_color_scheme "$1"
|
set_color_scheme "$1"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
error_handler 3 "$opt"
|
error_handler 3 "$OPTARG"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
C)
|
C)
|
||||||
|
@ -458,7 +458,7 @@ get_parameters()
|
||||||
if [[ -n $( egrep "^[0-$VERBOSITY_LEVELS]$" <<< $OPTARG ) ]];then
|
if [[ -n $( egrep "^[0-$VERBOSITY_LEVELS]$" <<< $OPTARG ) ]];then
|
||||||
VERBOSITY_LEVEL="$opt"
|
VERBOSITY_LEVEL="$opt"
|
||||||
else
|
else
|
||||||
error_handler 4 "$opt"
|
error_handler 4 "$OPTARG"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
U)
|
U)
|
||||||
|
|
Loading…
Reference in a new issue