From f335326cd91201513cf686f7ab45c2e36c619483 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 28 Oct 2008 03:49:24 +0000 Subject: [PATCH] tweaked color option error handler --- inxi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inxi b/inxi index dcf5269..025a18a 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.1.10 +#### version: 0.1.11 #### Date: October 27 2008 ######################################################################## #### 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." exit 0 ;; - *) + [0-9]|[0-9][0-9]) # these will need to be converted to standard type options echo "$1" | grep -q '^[0-9][0-9]\?$' || error_handler 3 "$1" if ! ((CSCHEME)) @@ -483,9 +483,9 @@ get_parameters() set_color_scheme "$1" fi ;; -# *) -# error_handler 7 "$1" -# ;; + *) + error_handler 7 "$1" + ;; esac shift done