Follow symlinks in bin/resin

This commit is contained in:
Juan Cruz Viotti 2015-02-27 13:30:44 -04:00
parent 9b657397f3
commit a41c54bd2b

View File

@ -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" "$@"