Update linutil-installer.sh

This commit is contained in:
solomoncyj 2024-10-18 22:58:46 +08:00 committed by GitHub
parent 084cd0f116
commit dc93e74b65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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