Browse Source

Copy node to local

Bob Mottram 7 years ago
parent
commit
9fdac92c9b
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-utils-nodejs

+ 4
- 0
src/freedombone-utils-nodejs View File

102
         cp "$rootdir/usr/bin/nodejs" "$rootdir/usr/bin/node"
102
         cp "$rootdir/usr/bin/nodejs" "$rootdir/usr/bin/node"
103
     fi
103
     fi
104
 
104
 
105
+    if [ -f "$rootdir/usr/bin/node" ]; then
106
+        cp "$rootdir/usr/bin/node" "$rootdir/usr/local/bin/node"
107
+    fi
108
+
105
     if [ ! -f "${rootdir}/usr/bin/node" ]; then
109
     if [ ! -f "${rootdir}/usr/bin/node" ]; then
106
         if [ ! -f "${rootdir}/usr/local/bin/node" ]; then
110
         if [ ! -f "${rootdir}/usr/local/bin/node" ]; then
107
             if [ ! -f "${rootdir}/usr/bin/nodejs" ]; then
111
             if [ ! -f "${rootdir}/usr/bin/nodejs" ]; then