profile.d: Show welcome message on Fedora Kinoite

SC3059 shellcheck rule could be disabled,
because we reqiure bash or zsh to run the welcome script,
so case modification will work.

https://github.com/containers/toolbox/pull/881
This commit is contained in:
kuba3351 2021-09-22 01:13:51 +02:00 committed by Ondřej Míchal
parent a9cc052efe
commit 3641a0032f

View file

@ -20,9 +20,10 @@ eval $(
if [ -f /run/ostree-booted ] \
&& ! [ -f "$host_welcome_stub" ] \
&& [ "${ID}" = "fedora" ] \
&& { [ "${VARIANT_ID}" = "workstation" ] || [ "${VARIANT_ID}" = "silverblue" ]; }; then
&& { [ "${VARIANT_ID}" = "workstation" ] || [ "${VARIANT_ID}" = "silverblue" ] || [ "${VARIANT_ID}" = "kinoite" ]; }; then
echo ""
echo "Welcome to Fedora Silverblue. This terminal is running on the"
# shellcheck disable=SC3059
echo "Welcome to Fedora ${VARIANT_ID^}. This terminal is running on the"
echo "host system. You may want to try out the Toolbox for a directly"
echo "mutable environment that allows package installation with DNF."
echo ""