Skip to content

Commit

Permalink
Merge pull request #430 from basiliscos/develop
Browse files Browse the repository at this point in the history
Fix RT#98579 (test failure with HOME=/)
  • Loading branch information
gugod committed Dec 10, 2014
2 parents 818ed7d + cb9dedc commit b16d419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/App/perlbrew.pm
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ sub env {
sub path_with_tilde {
my ($self, $dir) = @_;
my $home = $self->env('HOME');
$dir =~ s/^\Q$home\E/~/ if $home;
$dir =~ s!\Q$home/\E!~/! if $home;
return $dir;
}

Expand Down

0 comments on commit b16d419

Please sign in to comment.