]> git.michaelhowe.org Git - packages/a/afs-monitor.git/commitdiff
Remove unneeded parentheses around the date in version output
authorRuss Allbery <rra@stanford.edu>
Sat, 16 Oct 2010 18:28:32 +0000 (11:28 -0700)
committerRuss Allbery <rra@stanford.edu>
Sat, 16 Oct 2010 18:28:32 +0000 (11:28 -0700)
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).

check_afsspace
check_bos
check_rxdebug
check_udebug

index 60d82e99b2cec67e4ef9b37fc8ab7bce79bd37b9..1104402c5d657b994f3c664afb00b132d5e1cf70 100755 (executable)
@@ -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;
 }
index 6098e18a7823a95852dc30c3431c3dd47337ee88..870726ef883e5f215df1e795884fc3edf61c1bcb 100755 (executable)
--- 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;
 }
index 295ac3256f663ebcee65f2c953194951acb30646..5a34203f749f944a3f1a3e09d5064337453da4e5 100755 (executable)
@@ -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;
 }
index b63ca0d94da6a3aca2f562e1cebaa1652124d353..b11a31f78d01402c73c070076cb0b04010576078 100755 (executable)
@@ -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;
 }