A few more sloppy bug fixes

This commit is contained in:
inxi-svn 2008-11-01 21:34:07 +00:00
parent e956ee03f3
commit 0007279526

6
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 0.3.0 #### version: 0.3.1
#### Date: November 1 2008 #### Date: November 1 2008
######################################################################## ########################################################################
#### inxi is a fork of infobash, the original bash sys info script by locsmif #### inxi is a fork of infobash, the original bash sys info script by locsmif
@ -435,7 +435,7 @@ get_parameters()
## 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
if [ -z "$COLOR_SCHEME" ];then if [ -z "$COLOR_SCHEME" ];then
set_color_scheme "$1" set_color_scheme "$OPTARG"
fi fi
else else
error_handler 3 "$OPTARG" error_handler 3 "$OPTARG"
@ -456,7 +456,7 @@ get_parameters()
;; ;;
v) v)
if [[ -n $( egrep "^[0-$VERBOSITY_LEVELS]$" <<< $OPTARG ) ]];then if [[ -n $( egrep "^[0-$VERBOSITY_LEVELS]$" <<< $OPTARG ) ]];then
VERBOSITY_LEVEL="$opt" VERBOSITY_LEVEL="$OPTARG"
else else
error_handler 4 "$OPTARG" error_handler 4 "$OPTARG"
fi fi