mirror of https://github.com/XTLS/Xray-install
Fix mistakes
parent
7e8ad02265
commit
dd1b0330ea
|
@ -1,10 +1,6 @@
|
||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
|
|
||||||
TMP_DIRECTORY="$(mktemp -d)/"
|
# Identify architecture
|
||||||
ZIP_FILE="${TMP_DIRECTORY}v2ray-linux-$BIT.zip"
|
|
||||||
DOWNLOAD_LINK="https://github.com/v2ray/v2ray-core/releases/latest/download/v2ray-linux-$BIT.zip"
|
|
||||||
|
|
||||||
identify_architecture() {
|
|
||||||
case "$(arch -s)" in
|
case "$(arch -s)" in
|
||||||
'i386' | 'i686')
|
'i386' | 'i686')
|
||||||
BIT='32'
|
BIT='32'
|
||||||
|
@ -17,7 +13,10 @@ identify_architecture() {
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
|
||||||
|
TMP_DIRECTORY="$(mktemp -d)/"
|
||||||
|
ZIP_FILE="${TMP_DIRECTORY}v2ray-linux-$BIT.zip"
|
||||||
|
DOWNLOAD_LINK="https://github.com/v2ray/v2ray-core/releases/latest/download/v2ray-linux-$BIT.zip"
|
||||||
|
|
||||||
install_software() {
|
install_software() {
|
||||||
if [[ -n "$(command -v curl)" ]]; then
|
if [[ -n "$(command -v curl)" ]]; then
|
||||||
|
@ -148,7 +147,6 @@ information() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
identify_architecture
|
|
||||||
install_software
|
install_software
|
||||||
install_software
|
install_software
|
||||||
download_v2ray
|
download_v2ray
|
||||||
|
|
Loading…
Reference in New Issue