Permalink
Browse files

chekc_ubuntu_restart after debuggin

  • Loading branch information...
1 parent df6f0c3 commit ed7f904f8ad7d004fb437d4cee780258578e9760 Andrew Libby committed Sep 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 check_ubuntu_restart
View
@@ -15,16 +15,16 @@ while getopts 'f:h' opt; do
exit $STATE_UNKNOWN
;;
f)
- REBOOT_FILE = $OPTARG
+ REBOOT_FILE=$OPTARG
;;
esac
done
if [ -f "$REBOOT_FILE" ]; then
- echo "WARNING - $1 EXISTS - SYSTEM RESTART NEEDED"
+ echo "WARNING - $REBOOT_FILE EXISTS - SYSTEM RESTART NEEDED"
exit $STATE_WARNING
else
- echo "OK - $1 DOES NOT EXIST - NO RESTART NEEDED"
+ echo "OK - $REBOOT_FILE DOES NOT EXIST - NO RESTART NEEDED"
exit $OK
fi

0 comments on commit ed7f904

Please sign in to comment.