Fix mistakes

pull/86/head
Dct Mei 2020-04-13 00:41:50 +08:00
parent 7e8ad02265
commit dd1b0330ea
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 14 additions and 16 deletions

View File

@ -1,10 +1,6 @@
#!/bin/ash
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"
identify_architecture() {
# Identify architecture
case "$(arch -s)" in
'i386' | 'i686')
BIT='32'
@ -17,7 +13,10 @@ identify_architecture() {
exit 1
;;
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() {
if [[ -n "$(command -v curl)" ]]; then
@ -148,7 +147,6 @@ information() {
}
main() {
identify_architecture
install_software
install_software
download_v2ray