diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-27 10:31:41 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-27 10:31:41 +0300 |
| commit | 9f08795a377b981124b711c2e9c39b826f1cb2dd (patch) | |
| tree | 91c7e46d29e57f5e75f7bc8bccbc65f6a1b4b297 | |
| parent | cdcc395daf231fb2fd7bf9459eb06bff8b617e31 (diff) | |
| download | pfetch-9f08795a377b981124b711c2e9c39b826f1cb2dd.tar.gz | |
pfetch: fix variable conflict
| -rwxr-xr-x | pfetch | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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 |
