aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2020-11-16 19:02:01 +0200
committerDylan Araps <dylan.araps@gmail.com>2020-11-16 19:02:01 +0200
commit20763dc8ceb53327095e34998c228cb31c0afc33 (patch)
tree08102b129c8bdd138a4b6be044124b650c3dee3c
parent2b61a0389d00dc867db0e4ed9ffd0533ff5a14b1 (diff)
downloadpfetch-20763dc8ceb53327095e34998c228cb31c0afc33.tar.gz
fixci
-rwxr-xr-xpfetch18
1 files changed, 13 insertions, 5 deletions
diff --git a/pfetch b/pfetch
index 5111594..96745c3 100755
--- a/pfetch
+++ b/pfetch
@@ -1024,10 +1024,15 @@ get_palette() {
#
# This allows us to save hardcoding a second set of sequences
# for background colors.
- esc SGR 7
- palette="$e$c1 $c1 $c2 $c2 $c3 $c3 $c4 $c4 $c5 $c5 $c6 $c6 "
- esc SGR 0
- palette="$palette$e"
+ #
+ # False positive.
+ # shellcheck disable=2154
+ {
+ esc SGR 7
+ palette="$e$c1 $c1 $c2 $c2 $c3 $c3 $c4 $c4 $c5 $c5 $c6 $c6 "
+ esc SGR 0
+ palette="$palette$e"
+ }
# Print the palette with a new-line before and afterwards.
printf '\n' >&6
@@ -1071,6 +1076,9 @@ get_ascii() {
# NOTE: Each ascii art below is indented using tabs, this
# allows indentation to continue naturally despite
# the use of '<<-EOF'.
+ #
+ # False positive.
+ # shellcheck disable=2154
case ${1:-${PF_ASCII:-${distro:-$os}}} in
([Aa]lpine*)
read_ascii 4 <<-EOF
@@ -1308,7 +1316,7 @@ get_ascii() {
${c7}/.\` \`.\\
EOF
;;
-
+
([Ii]nstant[Oo][Ss]*)
read_ascii <<-EOF
${c0} ,-''-,