瀏覽代碼

Different way of setting the npm version

Bob Mottram 7 年之前
父節點
當前提交
164481ce2e
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      src/freedombone-image-customise

+ 2
- 1
src/freedombone-image-customise 查看文件

@@ -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