From aadab4e15fd43dd0fc308a63916593bb378ff519 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 24 Sep 2019 16:43:28 +0300 Subject: [PATCH] docs: update --- pfetch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pfetch b/pfetch index 3d0a196..b9f270f 100755 --- a/pfetch +++ b/pfetch @@ -124,6 +124,12 @@ get_distro() { # shellcheck source=/dev/null . /etc/os-release && distro=$PRETTY_NAME ;; + + *) + # Catch all to ensure '$distro' is never blank. + # This should also handle the BSDs, macOS etc. + distro=$os + ;; esac }