Skip to content

Commit

Permalink
Item13315: Try both -V and --version for rcs
Browse files Browse the repository at this point in the history
Old versions want -V,  newer, --version.  It appears that using
both seems to work.
  • Loading branch information
gac410 committed Jun 6, 2015
1 parent d9d5dea commit 05c25c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RCSStoreContrib/lib/Foswiki/Configure/Checkers/RCSChecker.pm
Expand Up @@ -32,7 +32,8 @@ sub checkRCSProgram {
$err .= $key . ' is not set';
}
else {
my $version = `$prog --version` || '';
#SMELL: Old versions of RCS require -V, newer --version, and they complain
my $version = `$prog -V --version` || '';
if (
$version !~ /Can't exec/

Expand Down

0 comments on commit 05c25c6

Please sign in to comment.