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