Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenSUSE to list of linutil added to package managers #820

Merged
merged 20 commits into from
Nov 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions core/tabs/applications-setup/linutil-installer.sh
solomoncyj marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,19 @@ installLinutil() {
;;
zypper)
solomoncyj marked this conversation as resolved.
Show resolved Hide resolved
printf '%s\n' 'detecting flavor'
[ zypper lr | grep -q "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll"
if zypper lr | grep -Fq Tumbleweed
then flavor=Tumbleweed
else flavor=Slowroll
fi

printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC"
printf "\n" "setting up repos"
if [[ $flavor == Tumbleweed ]]
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" ]
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
Expand Down