Explorar o código

Capture command output

Jinqiu Yu %!s(int64=7) %!d(string=hai) anos
pai
achega
2dc6d29d95
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      release/install-release.sh

+ 1 - 1
release/install-release.sh

@@ -206,7 +206,7 @@ startV2ray(){
 copyFile() {
     NAME=$1
     MANDATE=$2
-    ERROR=`cp "/tmp/v2ray/v2ray-${NEW_VER}-linux-${VDIS}/${NAME}" "/usr/bin/v2ray/${NAME}"`
+    ERROR=`cp "/tmp/v2ray/v2ray-${NEW_VER}-linux-${VDIS}/${NAME}" "/usr/bin/v2ray/${NAME}" 2>&1`
     if [[ $? -ne 0 ]]; then
         colorEcho ${YELLOW} "${ERROR}"
         if [ "$MANDATE" = true ]; then