summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-05-30 13:42:25 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-05-30 13:42:25 +0000
commit2e49f8c714338ed6f44fc845379d06aded464f6d (patch)
tree31b70c2d578d8ef61b2fa2020cca24c4e7455278
parent16e3062ce0f072711d86d4d99f72b98d6893081f (diff)
Set version
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@114 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xnagios-check-raid-3ware6
1 files changed, 4 insertions, 2 deletions
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;