Permalink
Browse files

Use readlink to find out real location of entop

  • Loading branch information...
1 parent baf583b commit 48264ad28231a9c8f5c3d668e02a224625e32c66 @yrashk yrashk committed Feb 1, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 entop
View
4 entop
@@ -46,7 +46,9 @@ do
esac
done
-erl -noinput -hidden -pa ebin -pa deps/cecho/ebin +A 20 +Bc -eval "entop:start('${TARGETNODE}')" $NAME $COOKIE $@
+DIRNAME=`(readlink -n $0 || echo $0) | xargs dirname`
+
+erl -noinput -hidden -pa $DIRNAME/ebin -pa $DIRNAME/deps/cecho/ebin +A 20 +Bc -eval "entop:start('${TARGETNODE}')" $NAME $COOKIE $@
CODE=$?
if [[ $CODE -eq 101 ]]; then

0 comments on commit 48264ad

Please sign in to comment.