Skip to content

Commit

Permalink
switch 'rar' to 'unrar' binary for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mj41 committed Jun 8, 2013
1 parent 5f19293 commit cf7db74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Archive/Rar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ sub TestExe {
#
sub SearchExe {
my $self = shift;
my $cmd = 'rar';
my $cmd;

if ( $IsWindows ) {
my ( $key, $type, $value );
Expand Down Expand Up @@ -153,9 +153,9 @@ sub SearchExe {
goto Good if $self->TestExe($cmd);
}
else {
$cmd = 'rar';
$cmd = 'unrar';
goto Good if $self->TestExe($cmd);
$cmd = './rar';
$cmd = './unrar';
goto Good if $self->TestExe($cmd);
}
Bad:
Expand Down

0 comments on commit cf7db74

Please sign in to comment.