mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 00:47:47 +00:00
(Change Version)
Added -! unsupported argument error condition.
This commit is contained in:
parent
a7d160d02d
commit
5c754f182b
10
inxi
10
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"
|
||||
|
|
Loading…
Reference in a new issue