Skip to content

Commit

Permalink
On Linux use the counterintuitive -r for $*KERNEL.version
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanstowe committed May 30, 2015
1 parent c269124 commit 57a959f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/core/Kernel.pm
Expand Up @@ -42,7 +42,16 @@ class Kernel does Systemic {
!! $unamev.chomp;
}
default {
uname '-v';
given $.name {
when 'linux' {
# somewhat counter-intuitively the '-r' is what
# most people think of the kernel version
uname '-r';
}
default {
uname '-v';
}
}
}
}
} );
Expand Down

0 comments on commit 57a959f

Please sign in to comment.