Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Support for GalliumOS #170

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions pfetch
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ get_palette() {
palette="$palette$e"
}

# Print the palette with a new-line before and afterwards but no seperator.
# Print the palette with a new-line before and afterwards but no separator.
printf '\n' >&6
log "$palette
" " " " " >&6
Expand Down Expand Up @@ -1353,6 +1353,17 @@ get_ascii() {
EOF
;;

([Gg]allium[Oo][Ss])
read_ascii 4 <<-EOF
${c4}\\ooooo/::::
y\\ooo/\\::::
yy\\o/${c7}MM${c4}\\:::
yyy\\${c7}MM${c4}/.\\::
yyyyy/...\\:
yyyy/.....\\
EOF
;;

([Gg]entoo*)
read_ascii 5 <<-EOF
${c5} _-----_
Expand Down Expand Up @@ -1810,7 +1821,7 @@ get_ascii() {
# This ensures that any variables defined in the while loop
# are still accessible in the script.
done <<-EOF
$(printf %s "$ascii" | sed 's/\[3.m//g')
$(printf %s "$ascii" | sed 's/\[3.m//g')
EOF

# Add a gap between the ascii art and the information.
Expand Down Expand Up @@ -1863,7 +1874,7 @@ EOF
# shellcheck source=/dev/null
! [ -f "$PF_SOURCE" ] || . "$PF_SOURCE"

# Ensure that the 'TMPDIR' is writable as heredocs use it and
# Ensure that the 'TMPDIR' is writeable as heredocs use it and
# fail without the write permission. This was found to be the
# case on Android where the temporary directory requires root.
[ -w "${TMPDIR:-/tmp}" ] || export TMPDIR=~
Expand Down