From 9f08795a377b981124b711c2e9c39b826f1cb2dd Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 27 Sep 2019 10:31:41 +0300 Subject: [PATCH] pfetch: fix variable conflict --- pfetch | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pfetch b/pfetch index 82881ce..87beba2 100755 --- a/pfetch +++ b/pfetch @@ -110,9 +110,9 @@ get_title() { # the intention for using it is allowing the user to overwrite the # value on invocation. # shellcheck disable=SC2039 - host=${HOSTNAME:-${hostname:-$(hostname)}} + hostname=${HOSTNAME:-${hostname:-$(hostname)}} - log "[3${PF_COL3:-1}m${user}${c7}@[3${PF_COL3:-1}m${host}" " " >&6 + log "[3${PF_COL3:-1}m${user}${c7}@[3${PF_COL3:-1}m${hostname}" " " >&6 } get_os() { @@ -269,11 +269,6 @@ get_host() { *BSD*) host=$(sysctl -n hw.vendor hw.product) ;; - - Haiku) - # There is no way to get host information on Haiku(?). - return - ;; esac # Turn the host string into an argument list so we can iterate