Update linutil-installer.sh

This commit is contained in:
solomoncyj 2024-10-16 08:19:38 +08:00 committed by GitHub
parent e855935301
commit 3a63991e13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,10 +26,10 @@ installLinutil() {
printf "%b\n" "${GREEN}Installed successfully.${RC}" printf "%b\n" "${GREEN}Installed successfully.${RC}"
;; ;;
zypper) zypper)
printf "%b\n" "Detecting flavor..." printf "\n" "Detecting flavor..."
flavor = [[zypper lr | grep -i "Tumbleweed"]] && echo "Tumbleweed" || echo "Slowroll" flavor = zypper lr | grep -i "Tumbleweed" && echo "Tumbleweed" || echo "Slowroll"
printf "%b\n" " flavor detected is ${GREEN} ${flavor} ${RC}" printf "%b\n" " flavor detected is ${GREEN} ${flavor} ${RC}"
printf "%b\n" "setting up repos..." printf "\n" "setting up repos..."
if [$flavor == "Tumbleweed"] if [$flavor == "Tumbleweed"]
then then
"$ESCALATION_TOOL" "$PACKAGER" addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo "$ESCALATION_TOOL" "$PACKAGER" addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo