Allow bin/resin to be called from anywhere

This commit is contained in:
Juan Cruz Viotti 2015-02-27 12:19:55 -04:00
parent f94579da2b
commit 9b657397f3

View File

@ -45,9 +45,4 @@ if [ ! -x $NODE_PATH ]; then
fi
fi
# Support calling bin/resin from within bin/
if [ `dirname $0` == '.' ]; then
$NODE_PATH "../build/app.js" "$@"
else
$NODE_PATH "./build/app.js" "$@"
fi
$NODE_PATH "$0/../../build/app.js" "$@"