From a41c54bd2b990efaec34ccc8155bad105564791b Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 27 Feb 2015 13:30:44 -0400 Subject: [PATCH] Follow symlinks in bin/resin --- bin/resin | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/resin b/bin/resin index 07a8ae4b..4aa2daac 100755 --- a/bin/resin +++ b/bin/resin @@ -45,4 +45,10 @@ if [ ! -x $NODE_PATH ]; then fi fi -$NODE_PATH "$0/../../build/app.js" "$@" +BIN_RESIN=$0 + +while [ -L "$BIN_RESIN" ]; do + BIN_RESIN=`readlink "$BIN_RESIN"` +done + +$NODE_PATH "$BIN_RESIN/../../build/app.js" "$@"