aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-27 10:31:41 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-27 10:31:41 +0300
commit9f08795a377b981124b711c2e9c39b826f1cb2dd (patch)
tree91c7e46d29e57f5e75f7bc8bccbc65f6a1b4b297
parentcdcc395daf231fb2fd7bf9459eb06bff8b617e31 (diff)
downloadpfetch-9f08795a377b981124b711c2e9c39b826f1cb2dd.tar.gz
pfetch: fix variable conflict
-rwxr-xr-xpfetch9
1 files 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