Code

Added text re: MD5SUM updates in nightlies, but tarballs not
[nagiosplug.git] / plugins-scripts / check_oracle.sh
index 56962e37ccc0093b29d0aea68eb45e63fde51145..664795eb29932526047f3408467ffd3aefdb7600 100755 (executable)
@@ -8,7 +8,7 @@
 
 PROGNAME=`basename $0`
 PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
-REVISION=`echo '$Revision$' | sed -e 's/[^0-9.]//g'`
+REVISION="@NP_VERSION@"
 
 . $PROGPATH/utils.sh
 
@@ -89,11 +89,11 @@ case "$cmd" in
     exit $STATE_OK
     ;;
 --version)
-               print_revision $PLUGIN $REVISION
+               print_revision $PROGNAME $REVISION
     exit $STATE_OK
     ;;
 -V)
-               print_revision $PLUGIN $REVISION
+               print_revision $PROGNAME $REVISION
     exit $STATE_OK
     ;;
 esac