From dc93e74b656d26565f00067f12d9b2e681cd7c00 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Fri, 18 Oct 2024 22:58:46 +0800 Subject: [PATCH] Update linutil-installer.sh --- .../applications-setup/linutil-installer.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/core/tabs/applications-setup/linutil-installer.sh b/core/tabs/applications-setup/linutil-installer.sh index 0794b34a..06b3f120 100755 --- a/core/tabs/applications-setup/linutil-installer.sh +++ b/core/tabs/applications-setup/linutil-installer.sh @@ -34,15 +34,14 @@ installLinutil() { printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC" 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 - - if [ "$flavor" = Slowroll ] - then - "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo - fi + case "$flavor" in + Tumbleweed) + "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo + ;; + Slowroll) + "$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo + ;; + esac printf '%s\n' 'refreshing and installing' "$ESCALATION_TOOL" "$PACKAGER" refresh