aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-24 16:43:28 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-24 16:43:28 +0300
commitaadab4e15fd43dd0fc308a63916593bb378ff519 (patch)
tree0be58175a245b5659681e560ad29f938c27c8b72
parent15777b190aa6a9f731a220d56d793e124bab25cd (diff)
downloadpfetch-aadab4e15fd43dd0fc308a63916593bb378ff519.tar.gz
docs: update
-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
}