summaryrefslogtreecommitdiff
path: root/bin/run.sh
diff options
context:
space:
mode:
authorLukas Martini <lukas.martini@unionhost.de>2011-04-07 19:54:41 +0200
committerLukas Martini <lukas.martini@unionhost.de>2011-04-07 19:54:41 +0200
commitdebbced1851e884354d6dbf68982199f85ad2c7c (patch)
tree75528b70b3c0078c7658b8f1e98806fef7dcdf78 /bin/run.sh
parentde967c1cd5e186f19caacb35ff471f8aa62a877c (diff)
downloadetherpad-lite-debbced1851e884354d6dbf68982199f85ad2c7c.zip
Fixing scripts to run from both bin/ and /.
Diffstat (limited to 'bin/run.sh')
-rwxr-xr-xbin/run.sh6
1 files changed, 5 insertions, 1 deletions
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