From 9215033b83f9882c67ae7cd5b72cb9ce584a35ea Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Wed, 16 Oct 2024 09:03:08 +0800 Subject: [PATCH] Update linutil-installer.sh --- core/tabs/applications-setup/linutil-installer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index 2280c787..62bc39d0 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -26,9 +26,9 @@ installLinutil() { printf "%b\n" "${GREEN}Installed successfully.${RC}" ;; zypper) - printf "\n" "Detecting flavor..." + printf '%s\n' 'detecting flavor' [ zypper lr | grep -i "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll" - printf "%b\n" " flavor detected is ${GREEN} ${flavor} ${RC}" + printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC" printf "\n" "setting up repos..." if [ $flavor == "Tumbleweed" ] then @@ -40,7 +40,7 @@ installLinutil() { "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo fi - printf "%b\n" "refreshing and installing" + printf '%s\n' 'refreshing and installing' "$ESCALATION_TOOL" "$PACKAGER" refresh "$ESCALATION_TOOL" "$PACKAGER" install linutil printf "%b\n" "${GREEN}Installed successfully.${RC}"