Fixed myvar instead of myVar and added more test cases
This commit is contained in:
@@ -74,7 +74,7 @@ while [ -n "$1" ]; do
|
||||
-CT) myVar[myCT]="$2"; shift 2;;
|
||||
-g) myVar[myGrep]="$2"; shift 2;;
|
||||
-s) myVar[myString]="$2"; shift 2;;
|
||||
--pre) myvar[myPrefix]="$2"; shift 2;;
|
||||
--pre) myVar[myPrefix]="$2"; shift 2;;
|
||||
--post) myVar[myPostfix]="$2"; shift 2;;
|
||||
-N|-NT) myOptions[doNCPA]="true"; shift 1;;
|
||||
--num) myOptions[doNumber]="true"; shift 1;;
|
||||
|
||||
@@ -77,5 +77,5 @@ test-env: ENV
|
||||
@echo "This should return Level2"
|
||||
NAGIOS__HOSTNCPAPASS="Level2" ./ENV set.txt -n asdf -T NCPAPASS
|
||||
@echo ""
|
||||
@echo "This should return 91"
|
||||
NAGIOS_TEST="HTTP -S 8091" ./ENV set.txt -n TEST -g "8.*" -d 0 -f 2
|
||||
@echo "This should return Balloons, 91, Red"
|
||||
NAGIOS_TEST="HTTP -S 8099" ./ENV set.txt -n TEST -g "8.*" -d 0 -f 2 --pre "Balloons, " --post ", Red"
|
||||
|
||||
Reference in New Issue
Block a user