From debbced1851e884354d6dbf68982199f85ad2c7c Mon Sep 17 00:00:00 2001 From: Lukas Martini Date: Thu, 7 Apr 2011 19:54:41 +0200 Subject: Fixing scripts to run from both bin/ and /. --- bin/run.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/run.sh') diff --git a/bin/run.sh b/bin/run.sh index e9fbde68..2c42de8e 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -11,5 +11,9 @@ type -P node &>/dev/null || { exit 1 } -cd ../node +if [ -d "../bin" ]; then + cd "../" +fi + +cd "node" node server.js -- cgit v1.2.3