瀏覽代碼

More info on copy failure

Bob Mottram 7 年之前
父節點
當前提交
6db3860710
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. 5
    1
      src/freedombone-utils-go

+ 5
- 1
src/freedombone-utils-go 查看文件

@@ -214,7 +214,11 @@ function mesh_upgrade_golang {
214 214
         exit 356356785
215 215
     fi
216 216
     # shellcheck disable=SC2086
217
-    cp ${rootdir}/home/go/go${GO_VERSION}/bin/* "${rootdir}/usr/bin"
217
+    if ! cp ${rootdir}/home/go/go${GO_VERSION}/bin/* "${rootdir}/usr/bin"; then
218
+        ls -la "${rootdir}/home/go/go${GO_VERSION}"
219
+        echo $'Copying golang binaries failed'
220
+        exit 246824628
221
+    fi
218 222
 }
219 223
 
220 224
 function upgrade_golang {