From 6db386071049442fbc6e8d7964454d6d01a3aaeb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 3 Mar 2018 11:25:03 +0000 Subject: [PATCH] More info on copy failure --- src/freedombone-utils-go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/freedombone-utils-go b/src/freedombone-utils-go index a6cb8532..a91bb48c 100755 --- a/src/freedombone-utils-go +++ b/src/freedombone-utils-go @@ -214,7 +214,11 @@ function mesh_upgrade_golang { exit 356356785 fi # shellcheck disable=SC2086 - cp ${rootdir}/home/go/go${GO_VERSION}/bin/* "${rootdir}/usr/bin" + if ! cp ${rootdir}/home/go/go${GO_VERSION}/bin/* "${rootdir}/usr/bin"; then + ls -la "${rootdir}/home/go/go${GO_VERSION}" + echo $'Copying golang binaries failed' + exit 246824628 + fi } function upgrade_golang {