Bob Mottram 7 gadus atpakaļ
vecāks
revīzija
652c3a08ab
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      src/freedombone-utils-nodejs

+ 2
- 2
src/freedombone-utils-nodejs Parādīt failu

165
     nodejs_fix_cpu_detection
165
     nodejs_fix_cpu_detection
166
     $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save
166
     $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save
167
     if [ -f "$rootdir/usr/local/bin/npm" ]; then
167
     if [ -f "$rootdir/usr/local/bin/npm" ]; then
168
-        cp "$rootdir/usr/local/bin/npm" /usr/bin/npm
168
+        cp "$rootdir/usr/local/bin/npm" "$rootdir/usr/bin/npm"
169
     fi
169
     fi
170
     cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
170
     cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
171
 
171
 
181
     # deliberate second install of npm
181
     # deliberate second install of npm
182
     $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save
182
     $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save
183
     if [ -f "$rootdir/usr/local/bin/npm" ]; then
183
     if [ -f "$rootdir/usr/local/bin/npm" ]; then
184
-        cp "$rootdir/usr/local/bin/npm" /usr/bin/npm
184
+        cp "$rootdir/usr/local/bin/npm" "$rootdir/usr/bin/npm"
185
     fi
185
     fi
186
     cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
186
     cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
187
     if [ -f "$rootdir/usr/bin/node" ]; then
187
     if [ -f "$rootdir/usr/bin/node" ]; then