From c6471330d6785051d7fdd6724f43369f3a41ae34 Mon Sep 17 00:00:00 2001 From: Ryan Loudfoot Date: Sat, 2 Nov 2013 12:19:10 -0400 Subject: [PATCH] Update my (Ryan) email address and fix utils.sh check (-a deprecated, using -e now) --- check_domain | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_domain b/check_domain index 74f98d9..063f9a8 100755 --- a/check_domain +++ b/check_domain @@ -23,8 +23,8 @@ # https://github.com/Elyrith/check_domain # ############################################################################### -# VERSION: Version 0.94 -# AUTHOR: See README. This version updated by Ryan Loudfoot (elyrith@gmail.com) +# VERSION: Version 0.95 +# AUTHOR: See README. This version updated by Ryan Loudfoot (ryan@delotha.com) PROGRAM=${0##*/} PROGPATH=${0%/*} @@ -32,7 +32,7 @@ PROGPATH=${0%/*} # Ryan's note: utils.sh is installed with nagios-plugins in with the plugins # Check if utils.sh exists. This lets you use check_domain in a testing environment # or outside of Nagios. -if [ -a utils.sh ]; then +if [ -e "$PROGPATH/utils.sh" ]; then . "$PROGPATH/utils.sh" else STATE_OK=0