Try move without quotes

This commit is contained in:
Bob Mottram 2018-03-03 12:09:59 +00:00
parent 369a297a77
commit 0349c88837
1 changed files with 3 additions and 1 deletions

View File

@ -192,7 +192,8 @@ function mesh_upgrade_golang {
echo 'Go binary not installed' echo 'Go binary not installed'
exit 763562 exit 763562
fi fi
mv "${rootdir}/home/go/go" "${rootdir}/home/go/go${GO_VERSION}" # shellcheck disable=SC2086
mv ${rootdir}/home/go/go ${rootdir}/home/go/go${GO_VERSION}
echo "export GOROOT=/home/go" >> "${rootdir}/root/.bashrc" echo "export GOROOT=/home/go" >> "${rootdir}/root/.bashrc"
echo "export GOROOT=/home/go" >> "${rootdir}/etc/skel/.bashrc" echo "export GOROOT=/home/go" >> "${rootdir}/etc/skel/.bashrc"
echo "export GOROOT=/home/go" >> "${rootdir}/home/$MY_USERNAME/.bashrc" echo "export GOROOT=/home/go" >> "${rootdir}/home/$MY_USERNAME/.bashrc"
@ -213,6 +214,7 @@ function mesh_upgrade_golang {
echo $"golang binaries directory not found ${rootdir}/home/go/go${GO_VERSION}/bin" echo $"golang binaries directory not found ${rootdir}/home/go/go${GO_VERSION}/bin"
exit 356356785 exit 356356785
fi fi
ls -la "${rootdir}/home/go/go${GO_VERSION}"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
if ! cp ${rootdir}/home/go/go${GO_VERSION}/bin/* "${rootdir}/usr/bin"; then if ! cp ${rootdir}/home/go/go${GO_VERSION}/bin/* "${rootdir}/usr/bin"; then
ls -la "${rootdir}/home/go/go${GO_VERSION}" ls -la "${rootdir}/home/go/go${GO_VERSION}"