From 2e49f8c714338ed6f44fc845379d06aded464f6d Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 30 May 2006 13:42:25 +0000 Subject: Set version git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@114 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-raid-3ware | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nagios-check-raid-3ware') diff --git a/nagios-check-raid-3ware b/nagios-check-raid-3ware index c81d5e7..1a23988 100755 --- a/nagios-check-raid-3ware +++ b/nagios-check-raid-3ware @@ -15,8 +15,10 @@ $ENV{'PATH'} = '/bin:/sbin:/usr/bin:/usr/sbin'; delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; my $TW_CLI = '/usr/local/bin/tw_cli'; -my $SVN_REVISION = '$Rev$'; -my $VERSION = '0.0.0'; +my $SVN_REVISION_STRING = '$Rev$'; +my $SVN_REVISION = $SVN_REVISION =~ /([0-9]+)/; + $SVN_REVISION = 'unknown' unless defined $SVN_REVISION; +my $VERSION = '0.0.0.'.$SVN_REVISION; # nagios exit codes my $UNKNOWN = -1; -- cgit v1.2.3