Browse Source

Different way of setting the npm version

Bob Mottram 7 years ago
parent
commit
164481ce2e
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/freedombone-image-customise

+ 2
- 1
src/freedombone-image-customise View File

@@ -581,7 +581,8 @@ install_patchwork() {
581 581
             exit 8793636
582 582
         fi
583 583
         chroot "$rootdir" chmod +x /root/npm_install.sh
584
-        chroot "$rootdir" npm_install=$NPM_VERSION /root/npm_install.sh
584
+        sed -i "s|t=\"\${npm_install}\"|t=\"$NPM_VERSION\"|g" $rootdir/root/npm_install.sh
585
+        chroot "$rootdir" /root/npm_install.sh
585 586
     fi
586 587
 
587 588
     git clone https://github.com/ssbc/patchwork $rootdir/etc/patchwork