From 54f7e462eca5bc3a2ed3aa522b32cf746b3e7dd5 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Wed, 16 Oct 2024 09:05:46 +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 62bc39d0..7270626c 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -27,10 +27,10 @@ installLinutil() { ;; zypper) printf '%s\n' 'detecting flavor' - [ zypper lr | grep -i "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll" + [ zypper lr | grep -q "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll" printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC" - printf "\n" "setting up repos..." - if [ $flavor == "Tumbleweed" ] + printf "\n" "setting up repos" + if [[ $flavor == Tumbleweed ]] then "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo fi