Browse Source

More info on copy failure

Bob Mottram 7 years ago
parent
commit
6db3860710
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/freedombone-utils-go

+ 5
- 1
src/freedombone-utils-go View File

@@ -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 {