Added installation configuration for Gentoo (#820)

* Added installation configuration for Gentoo

* Added check for sudo command
pull/831/head
Tobias Faller 5 years ago committed by GitHub
parent a9c43edef2
commit b209c2b54e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -53,6 +53,10 @@ install_zypper() {
fi
}
install_emerge() {
emerge --oneshot --deep --newuse --changed-use --changed-deps dev-lang/python dev-python/pip sys-devel/gdb
}
PYTHON=''
INSTALLFLAGS=''
@ -94,6 +98,14 @@ if linux; then
"void")
install_xbps
;;
"gentoo")
install_emerge
if ! hash sudo 2>/dev/null && whoami | grep root; then
sudo() {
$*
}
fi
;;
*) # we can add more install command for each distros.
echo "\"$distro\" is not supported distro. Will search for 'apt' or 'dnf' package managers."
if hash apt; then

Loading…
Cancel
Save