Copy node to local

This commit is contained in:
Bob Mottram 2018-03-30 11:51:53 +01:00
parent 9881291951
commit 9fdac92c9b
1 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,10 @@ function mesh_install_nodejs {
cp "$rootdir/usr/bin/nodejs" "$rootdir/usr/bin/node"
fi
if [ -f "$rootdir/usr/bin/node" ]; then
cp "$rootdir/usr/bin/node" "$rootdir/usr/local/bin/node"
fi
if [ ! -f "${rootdir}/usr/bin/node" ]; then
if [ ! -f "${rootdir}/usr/local/bin/node" ]; then
if [ ! -f "${rootdir}/usr/bin/nodejs" ]; then