From: Russ Allbery Date: Sat, 16 Oct 2010 18:28:32 +0000 (-0700) Subject: Remove unneeded parentheses around the date in version output X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=60622f9eec93134718e2d9576da2f3ebddec15b1;p=packages%2Fa%2Fafs-monitor.git Remove unneeded parentheses around the date in version output The date in the $VERSION string is going to include parens, so don't add additional parens when outputing the version string (in response to -v, for example). --- diff --git a/check_afsspace b/check_afsspace index 60d82e9..1104402 100755 --- a/check_afsspace +++ b/check_afsspace @@ -60,7 +60,6 @@ if ($help) { exec ('perldoc', '-t', $0) or die "Cannot fork: $!\n"; } elsif ($version) { my $version = $VERSION; - $version =~ s/(\S+)$/($1)/; print "check_afsspace $version\n"; exit 0; } diff --git a/check_bos b/check_bos index 6098e18..870726e 100755 --- a/check_bos +++ b/check_bos @@ -69,7 +69,6 @@ if ($help) { exec ('perldoc', '-t', $0) or die "Cannot fork: $!\n"; } elsif ($version) { my $version = $VERSION; - $version =~ s/(\S+)$/($1)/; print "check_bos $version\n"; exit 0; } diff --git a/check_rxdebug b/check_rxdebug index 295ac32..5a34203 100755 --- a/check_rxdebug +++ b/check_rxdebug @@ -62,7 +62,6 @@ if ($help) { exec ('perldoc', '-t', $0) or die "Cannot fork: $!\n"; } elsif ($version) { my $version = $VERSION; - $version =~ s/(\S+)$/($1)/; print "check_bos $version\n"; exit 0; } diff --git a/check_udebug b/check_udebug index b63ca0d..b11a31f 100755 --- a/check_udebug +++ b/check_udebug @@ -53,7 +53,6 @@ if ($help) { exec ('perldoc', '-t', $0) or die "Cannot fork: $!\n"; } elsif ($version) { my $version = $VERSION; - $version =~ s/(\S+)$/($1)/; print "check_bos $version\n"; exit 0; }