(Change Version)

Added -! unsupported argument error condition.
This commit is contained in:
inxi-svn 2008-11-11 19:12:24 +00:00
parent a7d160d02d
commit 5c754f182b

10
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 0.5.11 #### version: 0.5.12
#### Date: November 11 2008 #### Date: November 11 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
@ -261,7 +261,11 @@ error_handler()
;; ;;
9) error_message="unsupported debugging level: $2" 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: $@" *) error_message="error unknown: $@"
set -- 99 set -- 99
@ -585,6 +589,8 @@ get_parameters()
error_handler 10 "$OPTARG" error_handler 10 "$OPTARG"
fi fi
;; ;;
*) error_handler 11 "$OPTARG"
;;
esac esac
;; ;;
*) error_handler 7 "$1" *) error_handler 7 "$1"