Skip to content
Permalink
Browse files

Ensure we boolify our value

  • Loading branch information...
ugexe committed Mar 10, 2019
1 parent 5a9b720 commit 6e8df010f73027414d4d5ffd105722895e2f8302
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Kernel.pm6
@@ -11,7 +11,7 @@ class Kernel does Systemic {
has Bool $!has_uname;

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';
}

0 comments on commit 6e8df01

Please sign in to comment.
You can’t perform that action at this time.