Browse Source

Try move without quotes

Bob Mottram 7 years ago
parent
commit
0349c88837
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/freedombone-utils-go

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

192
         echo 'Go binary not installed'
192
         echo 'Go binary not installed'
193
         exit 763562
193
         exit 763562
194
     fi
194
     fi
195
-    mv "${rootdir}/home/go/go" "${rootdir}/home/go/go${GO_VERSION}"
195
+    # shellcheck disable=SC2086
196
+    mv ${rootdir}/home/go/go ${rootdir}/home/go/go${GO_VERSION}
196
     echo "export GOROOT=/home/go" >> "${rootdir}/root/.bashrc"
197
     echo "export GOROOT=/home/go" >> "${rootdir}/root/.bashrc"
197
     echo "export GOROOT=/home/go" >> "${rootdir}/etc/skel/.bashrc"
198
     echo "export GOROOT=/home/go" >> "${rootdir}/etc/skel/.bashrc"
198
     echo "export GOROOT=/home/go" >> "${rootdir}/home/$MY_USERNAME/.bashrc"
199
     echo "export GOROOT=/home/go" >> "${rootdir}/home/$MY_USERNAME/.bashrc"
213
         echo $"golang binaries directory not found ${rootdir}/home/go/go${GO_VERSION}/bin"
214
         echo $"golang binaries directory not found ${rootdir}/home/go/go${GO_VERSION}/bin"
214
         exit 356356785
215
         exit 356356785
215
     fi
216
     fi
217
+    ls -la "${rootdir}/home/go/go${GO_VERSION}"
216
     # shellcheck disable=SC2086
218
     # shellcheck disable=SC2086
217
     if ! cp ${rootdir}/home/go/go${GO_VERSION}/bin/* "${rootdir}/usr/bin"; then
219
     if ! cp ${rootdir}/home/go/go${GO_VERSION}/bin/* "${rootdir}/usr/bin"; then
218
         ls -la "${rootdir}/home/go/go${GO_VERSION}"
220
         ls -la "${rootdir}/home/go/go${GO_VERSION}"