aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnagios-acknowledge3
1 files changed, 1 insertions, 2 deletions
diff --git a/nagios-acknowledge b/nagios-acknowledge
index 5878e40..51fdce8 100755
--- a/nagios-acknowledge
+++ b/nagios-acknowledge
@@ -30,7 +30,7 @@ usage() {
# Default to not notifying
notify=0
-# Figure out whether we should notify
+# Process options
OPTIND=1
while getopts 'hn' opt ; do
case "$opt" in
@@ -60,7 +60,6 @@ fi
now=$(date +%s)
spec=$1
sticky=1
-notify=$notify
persistent=1
author=${SUDO_USER:-$USER}
comment=${2:-'no comment given'}