Skip to content

Commit

Permalink
Ensure we boolify our value
Browse files Browse the repository at this point in the history
  • Loading branch information
ugexe committed Mar 10, 2019
1 parent 5a9b720 commit 6e8df01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Kernel.pm6
Expand Up @@ -11,7 +11,7 @@ class Kernel does Systemic {
has Bool $!has_uname; has Bool $!has_uname;


method !uname($opt) { method !uname($opt) {
$!has_uname //= ("/bin/uname", "/usr/bin/uname").first({ .IO.e && .IO.x }); $!has_uname //= ("/bin/uname", "/usr/bin/uname").first({ .IO.e && .IO.x }).so;
$!has_uname ?? qqx/uname $opt/.chomp !! 'unknown'; $!has_uname ?? qqx/uname $opt/.chomp !! 'unknown';
} }


Expand Down

0 comments on commit 6e8df01

Please sign in to comment.