Added nil to the (commented) MONTH array for future use, so that each array element corresponds with it's desired month, like = 'may'.

This commit is contained in:
Ryan Loudfoot 2014-09-06 17:27:48 -04:00
parent 24614212fb
commit b07b3d5edc

View File

@ -46,7 +46,8 @@ critical=7
warning=30 warning=30
# Array for converting 3-letter month into number (currently unused) # Array for converting 3-letter month into number (currently unused)
#MONTH=("jan" "feb" "mar" "apr" "may" "jun" "jul" "aug" "sep" "oct" "nov" "dec") # "nil" added as element-zero $MONTH[0]
#MONTH=("nil" "jan" "feb" "mar" "apr" "may" "jun" "jul" "aug" "sep" "oct" "nov" "dec")
# Parse arguments # Parse arguments
args=$(getopt -o hd:w:c:P: --long help,domain:,warning:,critical:,path: -s bash -n "$PROGRAM" -- "$@") args=$(getopt -o hd:w:c:P: --long help,domain:,warning:,critical:,path: -s bash -n "$PROGRAM" -- "$@")