Преглед на файлове

Merge pull request #1057 from sunshineplan/sunshineplan-patch-4

Update install-release.sh
DarienRaymond преди 7 години
родител
ревизия
97f2de99ac
променени са 1 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. 6 3
      release/install-release.sh

+ 6 - 3
release/install-release.sh

@@ -233,10 +233,13 @@ makeExecutable() {
 installV2Ray(){
     # Install V2Ray binary to /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
-    copyFile v2ctl
-    makeExecutable v2ctl
+    copyFile v2ctl && makeExecutable v2ctl
     copyFile geoip.dat
     copyFile geosite.dat