summaryrefslogtreecommitdiff
path: root/nagios-check-raid-3ware
diff options
context:
space:
mode:
Diffstat (limited to 'nagios-check-raid-3ware')
-rwxr-xr-xnagios-check-raid-3ware4
1 files 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