mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
tweaked color option error handler
This commit is contained in:
parent
22f0026e2c
commit
f335326cd9
10
inxi
10
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.1.10
|
#### version: 0.1.11
|
||||||
#### Date: October 27 2008
|
#### Date: October 27 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
|
||||||
|
@ -475,7 +475,7 @@ get_parameters()
|
||||||
print_screen_output "(at your option) any later version."
|
print_screen_output "(at your option) any later version."
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
[0-9]|[0-9][0-9])
|
||||||
# these will need to be converted to standard type options
|
# these will need to be converted to standard type options
|
||||||
echo "$1" | grep -q '^[0-9][0-9]\?$' || error_handler 3 "$1"
|
echo "$1" | grep -q '^[0-9][0-9]\?$' || error_handler 3 "$1"
|
||||||
if ! ((CSCHEME))
|
if ! ((CSCHEME))
|
||||||
|
@ -483,9 +483,9 @@ get_parameters()
|
||||||
set_color_scheme "$1"
|
set_color_scheme "$1"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
# *)
|
*)
|
||||||
# error_handler 7 "$1"
|
error_handler 7 "$1"
|
||||||
# ;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue