Skip to content

Commit

Permalink
Only put paths without '..' into $PATH
Browse files Browse the repository at this point in the history
This looks nicer and might also fix a strange zsh warning that recommends
to use `perl` instead of `perl6`.
  • Loading branch information
PatZim committed Jun 17, 2019
1 parent f8c6ed4 commit 6f9f11f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Rakudobrew/Variables.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ use 5.010;

use FindBin qw($RealBin);
use File::Spec::Functions qw(catfile catdir updir);
use Cwd 'abs_path';

our $brew_name = 'rakudobrew';
our $env_var = 'PL6ENV_VERSION';
our $local_filename = '.perl6-version';

our $prefix = catdir($RealBin, updir());
our $prefix = abs_path(catdir($RealBin, updir()));
our $versions_dir = catdir($prefix, 'versions');
our $shim_dir = catdir($prefix, 'shims');
our $git_reference = catdir($prefix, 'git_reference');
Expand Down

0 comments on commit 6f9f11f

Please sign in to comment.