main/postmarketos-initramfs: fix splash newline (MR 3930)

POSIX sh dictates that newlines in strings are, newlines, so use printf
to format the splash strings and replace the "\\n" with an actual
newline.
This commit is contained in:
Caleb Connolly 2023-03-06 00:41:46 +00:00
parent f9bf75ab83
commit e74ac08673
No known key found for this signature in database
GPG key ID: 0583312B195F64B6
2 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
# Co-Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=postmarketos-initramfs
pkgver=1.0.1
pkgver=1.0.2
pkgrel=0
pkgdesc="Base files for the postmarketOS initramfs / initramfs-extra"
url="https://postmarketos.org"
@ -68,5 +68,5 @@ bed319179bcd0b894d6267c7e73f2890db07bc07df71542936947dfb3bdb17fade8a7b4e7b577f27
3c47e9169ee8cfe78e1a554cf325962f5425c41a0125dcba8561f377d8c52cbfccdd791b269656478c92604644fb286b1ee8df42db9f5a771657e415da35e619 00-initramfs-base.files
e984cd3033ce8752ebc71127828b964b46259a5263c2ebfab32c1394b674bcff464862ff00b8e920d3d31386c54ca0b94f84bc77580d275ecfeea33e76c07ef4 00-initramfs-extra-base.files
347637ba837c75d2e7c5e93b10364de6a784d70067c65dcc3b95277f5feb89fc9b243822022b2380846dd977c4a3f6f96877f547e6ffc7cd3051845d7907d6a1 init.sh
2a5dc96b38c6dbd079bbab0a296acee42499af3b317b3995abcc89554abd5863558f990caf9dace3a56dd6071cea45c9b0809ed4a26ae679a3cdc6c3adff2057 init_functions.sh
0325b91829a45d76c5606fec3af610ac0b138a81586ae3836058a773c10a6ed7c8b9090861cc8554c228956baa27dfe4b9edb5f7104673961649f65a878eb9dc init_functions.sh
"

View file

@ -614,8 +614,10 @@ show_splash() {
sleep 0.01
done
# shellcheck disable=SC2154
/usr/bin/pbsplash -s /usr/share/pbsplash/pmos-logo-text.svg -b "Linux $(uname -r) | $deviceinfo_codename" -m "$1 " &
# shellcheck disable=SC2154,SC2059
/usr/bin/pbsplash -s /usr/share/pbsplash/pmos-logo-text.svg \
-b "Linux $(uname -r) | $deviceinfo_codename" \
-m "$(printf "$1")" &
}
set_framebuffer_mode() {