Fixing scripts to run from both bin/ and /.

This commit is contained in:
Lukas Martini 2011-04-07 19:54:41 +02:00
parent de967c1cd5
commit debbced185
4 changed files with 21 additions and 5 deletions

View file

@ -11,5 +11,9 @@ type -P node &>/dev/null || {
exit 1
}
cd ../node
if [ -d "../bin" ]; then
cd "../"
fi
cd "node"
node server.js