mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Update linutil-installer.sh
This commit is contained in:
parent
235c084247
commit
9215033b83
|
@ -26,9 +26,9 @@ installLinutil() {
|
||||||
printf "%b\n" "${GREEN}Installed successfully.${RC}"
|
printf "%b\n" "${GREEN}Installed successfully.${RC}"
|
||||||
;;
|
;;
|
||||||
zypper)
|
zypper)
|
||||||
printf "\n" "Detecting flavor..."
|
printf '%s\n' 'detecting flavor'
|
||||||
[ zypper lr | grep -i "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll"
|
[ zypper lr | grep -i "Tumbleweed" ] && flavor="Tumbleweed" || flavor="Slowroll"
|
||||||
printf "%b\n" " flavor detected is ${GREEN} ${flavor} ${RC}"
|
printf '%b%s%b\n' "flavor detected is ${GREEN}" "$flavor" "$RC"
|
||||||
printf "\n" "setting up repos..."
|
printf "\n" "setting up repos..."
|
||||||
if [ $flavor == "Tumbleweed" ]
|
if [ $flavor == "Tumbleweed" ]
|
||||||
then
|
then
|
||||||
|
@ -40,7 +40,7 @@ installLinutil() {
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo
|
"$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "%b\n" "refreshing and installing"
|
printf '%s\n' 'refreshing and installing'
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" refresh
|
"$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