瀏覽代碼

Update install-release.sh

sunshineplan 7 年之前
父節點
當前提交
fc08c010c6
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      release/install-release.sh

+ 6 - 3
release/install-release.sh

@@ -237,10 +237,13 @@ makeExecutable() {
 installV2Ray(){
 installV2Ray(){
     # Install V2Ray binary to /usr/bin/v2ray
     # Install V2Ray binary to /usr/bin/v2ray
     mkdir -p /usr/bin/v2ray
     mkdir -p /usr/bin/v2ray
-    copyFile v2ray || return $?
+    copyFile v2ray
+    if [[ $? -ne 0 ]]; then
+        colorEcho ${RED} "Copy V2Ray binary failed."
+        return 1
+    fi
     makeExecutable v2ray
     makeExecutable v2ray
-    copyFile v2ctl
-    makeExecutable v2ctl
+    copyFile v2ctl && makeExecutable v2ctl
     copyFile geoip.dat
     copyFile geoip.dat
     copyFile geosite.dat
     copyFile geosite.dat