mirror of
https://github.com/XTLS/Xray-install.git
synced 2025-12-10 10:19:51 +00:00
add package manager for gentoo distro
This commit is contained in:
@@ -206,6 +206,10 @@ identify_the_operating_system_and_architecture() {
|
|||||||
PACKAGE_MANAGEMENT_INSTALL='pacman -Syu --noconfirm'
|
PACKAGE_MANAGEMENT_INSTALL='pacman -Syu --noconfirm'
|
||||||
PACKAGE_MANAGEMENT_REMOVE='pacman -Rsn'
|
PACKAGE_MANAGEMENT_REMOVE='pacman -Rsn'
|
||||||
package_provide_tput='ncurses'
|
package_provide_tput='ncurses'
|
||||||
|
elif [[ "$(type -P emerge)" ]]; then
|
||||||
|
PACKAGE_MANAGEMENT_INSTALL='emerge -v'
|
||||||
|
PACKAGE_MANAGEMENT_REMOVE='emerge -Cv'
|
||||||
|
package_provide_tput='ncurses'
|
||||||
else
|
else
|
||||||
echo "error: The script does not support the package manager in this operating system."
|
echo "error: The script does not support the package manager in this operating system."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user