Skip to content

Commit

Permalink
pass command line args to node
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmandel committed Jul 12, 2018
1 parent eded041 commit 2f7967c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nnode
Expand Up @@ -42,13 +42,12 @@ while [ x"$1" != x ]; do
fi
;;

*) echo "ERROR: unknown argument: $1"
exit 1
*) break
;;
esac
done

killp js9Helper.js >& /dev/null

echo "starting node $HELPER $PSTR"
node $HELPER 1>$LOG 2>&1 &
echo "starting node $HELPER $PSTR $*"
node $HELPER $* 1>$LOG 2>&1 &

0 comments on commit 2f7967c

Please sign in to comment.