Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't make an .IO unless we need it
  • Loading branch information
lizmat committed Jan 11, 2016
1 parent b870ed5 commit 8fb2088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Distro.pm
Expand Up @@ -61,7 +61,7 @@ sub INITIALIZE-A-DISTRO-NOW() {
}
$auth := 'Apple Computer, Inc.'; # presumably
}
elsif '/etc/os-release'.IO.e {
elsif Rakudo::Internals.FILETEST-E('/etc/os-release') {
$_ := '/etc/os-release'.IO.slurp.subst(:g, /'"'/,'');
$auth := ~$0 if m/^^ HOME_URL \= (\N*) /;
$name := ~$0 if m/^^ ID \= (\N*) /;
Expand Down

0 comments on commit 8fb2088

Please sign in to comment.