Changed EXIT_UNKNOWN to STATE_UNKNOWN (a typo) and updated to Version 1.1
This commit is contained in:
parent
c23fd583f0
commit
11d1a7bb04
@ -28,7 +28,7 @@
|
|||||||
# #
|
# #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
VERSION="Version 1.0"
|
VERSION="Version 1.1"
|
||||||
AUTHOR="(c) 2011 Jack-Benny Persson (jack-benny@cyberinfo.se)"
|
AUTHOR="(c) 2011 Jack-Benny Persson (jack-benny@cyberinfo.se)"
|
||||||
|
|
||||||
# Sensor program
|
# Sensor program
|
||||||
@ -159,7 +159,7 @@ while [[ -n "$1" ]]; do
|
|||||||
if [[ -z "$2" ]]; then
|
if [[ -z "$2" ]]; then
|
||||||
printf "\nOption $1 requires an argument"
|
printf "\nOption $1 requires an argument"
|
||||||
print_help
|
print_help
|
||||||
exit $EXIT_UNKNOWN
|
exit $STATE_UNKNOWN
|
||||||
fi
|
fi
|
||||||
adapter=$2
|
adapter=$2
|
||||||
shift 2
|
shift 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user