From 7e4c53a7e5d61ca114e1c5fcabad8e7747610d68 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 1 Nov 2008 21:28:38 +0000 Subject: [PATCH] Fixed bug, not null instead of null test,whoops --- inxi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 0b008a7..1ca6494 100755 --- a/inxi +++ b/inxi @@ -426,11 +426,11 @@ get_parameters() return 1 fi - while getopts :cCdDhTUv:V opt + while getopts c:CdDhTUv:V opt do case $opt in c) - if [ -z "$( egrep '^[0-9][0-9]?$' <<< $OPTARG )" ];then + if [ -n "$( egrep '^[0-9][0-9]?$' <<< $OPTARG )" ];then COLOR_SCHEME_SET='true' ## note: not sure about this, you'd think user values should be overridden, but ## we'll leave this for now @@ -455,7 +455,7 @@ get_parameters() B_TESTING_FLAG='true' ;; v) - if [[ -z $( egrep "^[0-$VERBOSITY_LEVELS]$" <<< $OPTARG ) ]];then + if [[ -n $( egrep "^[0-$VERBOSITY_LEVELS]$" <<< $OPTARG ) ]];then VERBOSITY_LEVEL="$opt" else error_handler 4 "$opt"