From 3641a0032fff04ed50874de52416a75d1ab63597 Mon Sep 17 00:00:00 2001 From: kuba3351 Date: Wed, 22 Sep 2021 01:13:51 +0200 Subject: [PATCH] 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 --- profile.d/toolbox.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/profile.d/toolbox.sh b/profile.d/toolbox.sh index fd0f07e..f6c68a6 100644 --- a/profile.d/toolbox.sh +++ b/profile.d/toolbox.sh @@ -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 ""