aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpfetch6
1 files changed, 6 insertions, 0 deletions
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
}