mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-11-06 15:51:35 +00:00
pfetch: update retired SC code
This commit is contained in:
1 parent
da06a5c9af
commit
bb21572d9d
1 file changed
+1
-1
@@ -169,7 +169,7 @@ get_title() {
|
|||||||
# Disable the warning about '$HOSTNAME' being undefined in POSIX sh as
|
# Disable the warning about '$HOSTNAME' being undefined in POSIX sh as
|
||||||
# the intention for using it is allowing the user to overwrite the
|
# the intention for using it is allowing the user to overwrite the
|
||||||
# value on invocation.
|
# value on invocation.
|
||||||
# shellcheck disable=SC2039
|
# shellcheck disable=SC3028
|
||||||
host=${HOSTNAME:-${host:-$(hostname)}}
|
host=${HOSTNAME:-${host:-$(hostname)}}
|
||||||
|
|
||||||
# If the hostname is still not found, fallback to the contents of the
|
# If the hostname is still not found, fallback to the contents of the
|
||||||
|
|||||||
Reference in new issue
Block a user