Explorar el Código

Update install-release.sh

sunshineplan hace 7 años
padre
commit
648b7e35f1
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      release/install-release.sh

+ 5 - 4
release/install-release.sh

@@ -389,11 +389,12 @@ main(){
             return 3
         elif [[ $RETVAL == 1 ]]; then
             colorEcho ${GREEN} "Found new version ${NEW_VER} for V2Ray.(Current version:$CUR_VER)"
+        else
+            colorEcho ${BLUE} "Installing V2Ray ${NEW_VER} on ${ARCH}"
+            downloadV2Ray || return $?
+            installSoftware unzip || return $?
+            extract ${ZIPFILE} || return $?
         fi
-    colorEcho ${BLUE} "Installing V2Ray ${NEW_VER} on ${ARCH}"
-    downloadV2Ray || return $?
-    installSoftware unzip || return $?
-    extract ${ZIPFILE} || return $?
     fi 
     if pgrep "v2ray" > /dev/null ; then
         V2RAY_RUNNING=1