mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 21:09:42 +00:00
Update linutil-installer.sh
This commit is contained in:
parent
2af6596efd
commit
d718fe55ff
|
@ -26,25 +26,6 @@ installLinutil() {
|
||||||
printf "%b\n" "${GREEN}Installed successfully.${RC}"
|
printf "%b\n" "${GREEN}Installed successfully.${RC}"
|
||||||
;;
|
;;
|
||||||
zypper)
|
zypper)
|
||||||
printf '%s\n' 'detecting flavor'
|
|
||||||
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"
|
|
||||||
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
|
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install linutil
|
"$ESCALATION_TOOL" "$PACKAGER" install linutil
|
||||||
printf "%b\n" "${GREEN}Installed successfully.${RC}"
|
printf "%b\n" "${GREEN}Installed successfully.${RC}"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user