mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Add handy script for executing node on helper scripts.
This commit is contained in:
15
admin/node.sh
Executable file
15
admin/node.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
ORIGDIR=$(pwd)
|
||||
cd $(dirname $0)
|
||||
cd ..
|
||||
TOPDIR=$(pwd)
|
||||
|
||||
# download dev bundle if we don't have it already
|
||||
if [ ! -d dev_bundle ] ; then
|
||||
./meteor --version
|
||||
fi
|
||||
|
||||
cd "$ORIGDIR"
|
||||
export NODE_PATH="$TOPDIR/dev_bundle/lib/node_modules"
|
||||
exec "$TOPDIR/dev_bundle/bin/node" $*
|
||||
Reference in New Issue
Block a user