diff --git a/ENV b/ENV index 74d81f2..6ba7bff 100755 --- a/ENV +++ b/ENV @@ -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;; diff --git a/Makefile b/Makefile index 1ee8540..6450e45 100644 --- a/Makefile +++ b/Makefile @@ -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"