diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-05-30 13:43:14 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-05-30 13:43:14 +0000 |
commit | fae36a558fbe655538c82db66bfff28eef2f2480 (patch) | |
tree | 678057373e1c7fcc02f62c7bc072f125cc75e994 /nagios-check-raid-3ware | |
parent | 2e49f8c714338ed6f44fc845379d06aded464f6d (diff) |
Set version properly
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@115 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'nagios-check-raid-3ware')
-rwxr-xr-x | nagios-check-raid-3ware | 4 |
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 |