From 621855148bf9261c62480828af3195a278c49f73 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 25 Sep 2019 19:08:22 +0300 Subject: [PATCH] host: fallback to uname -m --- pfetch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pfetch b/pfetch index 2599350..ab14557 100755 --- a/pfetch +++ b/pfetch @@ -242,7 +242,8 @@ get_host() { ;; esac - log host "$host" >&6 + # '$arch' is the cached output from 'uname -m'. + log host "${host:-$arch}" >&6 } get_uptime() { @@ -924,8 +925,8 @@ main() { # Store the output of 'uname' to avoid calling it multiple times # throughout the script. 'read <