Skip to content
Permalink
Browse files

Ensure we boolify our value

  • Loading branch information...
ugexe authored and AlexDaniel committed Mar 10, 2019
1 parent 190a714 commit 2f9d69c23b2004363a81788b7085cc825607d2a7
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 2f9d69c

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