mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
set up install script
This commit is contained in:
parent
9e781b4d2a
commit
182c8925ca
|
@ -25,6 +25,26 @@ installLinutil() {
|
||||||
esac
|
esac
|
||||||
printf "%b\n" "${GREEN}Installed successfully.${RC}"
|
printf "%b\n" "${GREEN}Installed successfully.${RC}"
|
||||||
;;
|
;;
|
||||||
|
zypper)
|
||||||
|
printf "%b\n" "Detecting flavor..."
|
||||||
|
flavor = [[zypper lr | grep -i "Tumbleweed"]] && echo "Tumbleweed" || echo "Slowroll"
|
||||||
|
printf "%b\n" " flavor detected is ${GREEN} ${flavor} ${RC}"
|
||||||
|
printf "%b\n" "setting up repos..."
|
||||||
|
if [$flavor == "Tumbleweed"]
|
||||||
|
then
|
||||||
|
zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Tumbleweed/home:solomoncyj.repo
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [$flavor == "Slowroll"]
|
||||||
|
then
|
||||||
|
zypper addrepo https://download.opensuse.org/repositories/home:solomoncyj/openSUSE_Slowroll/home:solomoncyj.repo
|
||||||
|
fi
|
||||||
|
|
||||||
|
printf "%b\n" "refreshing and installing"
|
||||||
|
zypper refresh
|
||||||
|
zypper install linutil
|
||||||
|
printf "%b\n" "${GREEN}Installed successfully.${RC}"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
printf "%b\n" "${RED}There are no official packages for your distro.${RC}"
|
printf "%b\n" "${RED}There are no official packages for your distro.${RC}"
|
||||||
printf "%b" "${YELLOW}Do you want to install the crates.io package? (y/N): ${RC}"
|
printf "%b" "${YELLOW}Do you want to install the crates.io package? (y/N): ${RC}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user