aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordylan <dylan.araps@gmail.com>2021-07-29 08:47:21 +0300
committerGitHub <noreply@github.com>2021-07-29 08:47:21 +0300
commita9cfc6502e56596ebd4e46c2d82dd0cbfbaeaff7 (patch)
tree1f424db3e04c314024b2b801f799032c15faf367
parentda06a5c9afa4eb298409637962f44587b23cecf3 (diff)
parentbb21572d9d3ca2bdf324c005737280c0e27af85c (diff)
downloadpfetch-a9cfc6502e56596ebd4e46c2d82dd0cbfbaeaff7.tar.gz
Merge pull request #129 from lieux/fix-shellcheck
pfetch: fix shellcheck warning
-rwxr-xr-xpfetch2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfetch b/pfetch
index 7aaa9bc..3a709dc 100755
--- a/pfetch
+++ b/pfetch
@@ -169,7 +169,7 @@ get_title() {
# Disable the warning about '$HOSTNAME' being undefined in POSIX sh as
# the intention for using it is allowing the user to overwrite the
# value on invocation.
- # shellcheck disable=SC2039
+ # shellcheck disable=SC3028
host=${HOSTNAME:-${host:-$(hostname)}}
# If the hostname is still not found, fallback to the contents of the