Check for presence of node
This commit is contained in:
parent
e58eef0651
commit
1fd767b7c3
|
@ -565,8 +565,13 @@ install_patchwork() {
|
||||||
chroot "$rootdir" apt-get -yq install g++ m4 libtool automake nodejs curl
|
chroot "$rootdir" apt-get -yq install g++ m4 libtool automake nodejs curl
|
||||||
chroot "$rootdir" apt-get -yq install libxext-dev libxtst-dev libxkbfile-dev
|
chroot "$rootdir" apt-get -yq install libxext-dev libxtst-dev libxkbfile-dev
|
||||||
|
|
||||||
chroot "$rootdir" which node
|
if [ -f $rootdir/usr/bin/nodejs ]; then
|
||||||
chroot "$rootdir" which nodejs
|
cp $rootdir/usr/bin/nodejs $rootdir/usr/bin/node
|
||||||
|
fi
|
||||||
|
if [ ! -f $rootdir/usr/bin/node ]; then
|
||||||
|
echo $'/usr/bin/node not found'
|
||||||
|
exit 7235728
|
||||||
|
fi
|
||||||
wget https://www.npmjs.com/install.sh -O $rootdir/root/npm_install.sh
|
wget https://www.npmjs.com/install.sh -O $rootdir/root/npm_install.sh
|
||||||
if [ ! -f $rootdir/root/npm_install.sh ]; then
|
if [ ! -f $rootdir/root/npm_install.sh ]; then
|
||||||
echo $'Unable to download npm installer'
|
echo $'Unable to download npm installer'
|
||||||
|
|
Loading…
Reference in New Issue