Fixing scripts to run from both bin/ and /.
This commit is contained in:
parent
de967c1cd5
commit
debbced185
|
@ -4,7 +4,11 @@ if [ ! -x /usr/bin/java ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "../doc/jsdoc-toolkit"
|
if [ -d "../bin" ]; then
|
||||||
|
cd "../"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "doc/jsdoc-toolkit"
|
||||||
|
|
||||||
JSRUN="jsrun.jar"
|
JSRUN="jsrun.jar"
|
||||||
RUNJS="app/run.js"
|
RUNJS="app/run.js"
|
||||||
|
|
|
@ -11,5 +11,9 @@ type -P node &>/dev/null || {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
cd ../node
|
if [ -d "../bin" ]; then
|
||||||
|
cd "../"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "node"
|
||||||
node server.js
|
node server.js
|
||||||
|
|
|
@ -11,5 +11,9 @@ node-inspector &
|
||||||
|
|
||||||
echo "If you new to node-inspector, take a look at this video: http://youtu.be/AOnK3NVnxL8"
|
echo "If you new to node-inspector, take a look at this video: http://youtu.be/AOnK3NVnxL8"
|
||||||
|
|
||||||
cd ../node
|
if [ -d "../bin" ]; then
|
||||||
|
cd "../"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "node"
|
||||||
node --debug server.js
|
node --debug server.js
|
||||||
|
|
|
@ -6,5 +6,9 @@ type -P nodeunit &>/dev/null || {
|
||||||
echo "Run: npm install nodeunit" >&2
|
echo "Run: npm install nodeunit" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
nodeunit ../tests
|
if [ -d "../bin" ]; then
|
||||||
|
cd "../"
|
||||||
|
fi
|
||||||
|
|
||||||
|
nodeunit tests
|
||||||
|
|
Loading…
Reference in New Issue