mirror of https://github.com/XTLS/Xray-install
Alpine: check alpine
parent
8f70a0e71f
commit
927efe0710
|
@ -58,6 +58,14 @@ TMP_DIRECTORY="$(mktemp -d)/"
|
||||||
ZIP_FILE="${TMP_DIRECTORY}Xray-linux-$MACHINE.zip"
|
ZIP_FILE="${TMP_DIRECTORY}Xray-linux-$MACHINE.zip"
|
||||||
DOWNLOAD_LINK="https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-$MACHINE.zip"
|
DOWNLOAD_LINK="https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-$MACHINE.zip"
|
||||||
|
|
||||||
|
check_alpine() {
|
||||||
|
if [ -f /etc/alpine-release ]; then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
install_software() {
|
install_software() {
|
||||||
if [[ -n "$(command -v curl)" ]]; then
|
if [[ -n "$(command -v curl)" ]]; then
|
||||||
return
|
return
|
||||||
|
@ -183,7 +191,7 @@ information() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
install_software
|
check_alpine || return 1
|
||||||
install_software
|
install_software
|
||||||
download_xray
|
download_xray
|
||||||
verification_xray
|
verification_xray
|
||||||
|
|
Loading…
Reference in New Issue