diff --git a/inxi b/inxi index f798760..f3dd3c9 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.5.11 +#### version: 0.5.12 #### Date: November 11 2008 ######################################################################## #### inxi is a fork of infobash, the original bash sys info script by locsmif @@ -261,7 +261,11 @@ error_handler() ;; 9) error_message="unsupported debugging level: $2" ;; - 10)error_message="the alt download url you provided: $2\nappears to be wrong, download aborted. Please note, the url\nneeds to end in /, without $SCRIPT_NAME, like: http://yoursite.com/downloads/" + 10) + error_message="the alt download url you provided: $2\nappears to be wrong, download aborted. Please note, the url\nneeds to end in /, without $SCRIPT_NAME, like: http://yoursite.com/downloads/" + ;; + 11) + error_message="unsupported testing option argument: -! $2" ;; *) error_message="error unknown: $@" set -- 99 @@ -585,6 +589,8 @@ get_parameters() error_handler 10 "$OPTARG" fi ;; + *) error_handler 11 "$OPTARG" + ;; esac ;; *) error_handler 7 "$1"