mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
Fixed bug, not null instead of null test,whoops
This commit is contained in:
parent
d379cb15c0
commit
7e4c53a7e5
6
inxi
6
inxi
|
@ -426,11 +426,11 @@ get_parameters()
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while getopts :cCdDhTUv:V opt
|
while getopts c:CdDhTUv:V opt
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
c)
|
c)
|
||||||
if [ -z "$( egrep '^[0-9][0-9]?$' <<< $OPTARG )" ];then
|
if [ -n "$( egrep '^[0-9][0-9]?$' <<< $OPTARG )" ];then
|
||||||
COLOR_SCHEME_SET='true'
|
COLOR_SCHEME_SET='true'
|
||||||
## note: not sure about this, you'd think user values should be overridden, but
|
## note: not sure about this, you'd think user values should be overridden, but
|
||||||
## we'll leave this for now
|
## we'll leave this for now
|
||||||
|
@ -455,7 +455,7 @@ get_parameters()
|
||||||
B_TESTING_FLAG='true'
|
B_TESTING_FLAG='true'
|
||||||
;;
|
;;
|
||||||
v)
|
v)
|
||||||
if [[ -z $( 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 "$opt"
|
||||||
|
|
Loading…
Reference in a new issue