Skip to content

Commit

Permalink
Merge pull request #22 from hoelzro/master
Browse files Browse the repository at this point in the history
Fix deprecations - Remove calls to .path in favor of .IO
  • Loading branch information
moritz committed Dec 9, 2014
2 parents ac25072 + 674f272 commit d9182c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/ufo
Expand Up @@ -146,7 +146,7 @@ sub get_prefix() {
my $path = %*CUSTOM_LIB{$loc};
push @tried, $path;
mkpath(~$path);
next unless $path.path.d;
next unless $path.IO.d;
say 'WARNING: You need to re-run ufo whenver you ',
$loc eq 'site' ?? 'update to a new Rakudo version'
!! 'recompile Rakudo';
Expand All @@ -159,7 +159,7 @@ sub get_prefix() {
# blatantly stolen from Shell::Command
sub mkpath($path) {
for [\~] $path.split('/').map({"$_/"}) {
mkdir($_) unless .path.d
mkdir($_) unless .IO.d
}
}

Expand Down

0 comments on commit d9182c8

Please sign in to comment.