From 9fdac92c9be2317135dcfeb2c8cb70c9497b3b86 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Mar 2018 11:51:53 +0100 Subject: [PATCH] Copy node to local --- src/freedombone-utils-nodejs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index b3b9cbf9..2c8cdc6b 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -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