Skip to content
Snippets Groups Projects
Commit d9f424c9 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check for presence of golang directory

parent bc1c81cc
No related branches found
No related tags found
No related merge requests found
......@@ -209,7 +209,12 @@ function mesh_upgrade_golang {
echo "export PATH=\$PATH:\$GOPATH" >> "${rootdir}/home/go/.bashrc"
$prefix chown -R "$MY_USERNAME":"$MY_USERNAME" "/home/$MY_USERNAME"
$prefix chown -R go:go /home/go
cp "${rootdir}/home/go/go${GO_VERSION}/bin/*" "${rootdir}/usr/bin"
if [ ! -d "${rootdir}/home/go/go${GO_VERSION}/bin" ]; then
echo $"golang binaries directory not found ${rootdir}/home/go/go${GO_VERSION}/bin"
exit 356356785
fi
# shellcheck disable=SC2086
cp ${rootdir}/home/go/go${GO_VERSION}/bin/* "${rootdir}/usr/bin"
}
function upgrade_golang {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment