diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-24 20:26:50 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-24 20:26:50 +0300 |
| commit | 0c927884dd06761f99e69d3ee5ebcaa0f398e9bb (patch) | |
| tree | 20a6f9670fbd13b66ae2d2cb80012b3a8e021477 | |
| parent | b7be211b13870b1ce74aafc850c168ba5008a151 (diff) | |
| download | pfetch-0c927884dd06761f99e69d3ee5ebcaa0f398e9bb.tar.gz | |
pfetch: more BSD support
| -rwxr-xr-x | pfetch | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -118,13 +118,22 @@ get_os() { *) # Catch all to ensure '$distro' is never blank. # This should also handle the BSDs, macOS etc. - distro=$os + distro="$os $kernel" ;; esac } get_kernel() { - log kernel "$kernel" + # '$kernel' is the cached output of 'uname -r'. + case $os in + # Don't print kernel output on BSD system as the + # OS name includes it. + *BSD) ;; + + *) + log kernel "$kernel" + ;; + esac } get_host() { |
