is now Small Technology Foundation.
Commit 50031f4b authored by Stanley Shyiko's avatar Stanley Shyiko

Fixed path resolution (when globally installed)

parent c023a902
__dirname=$(cd ${0%/*} && pwd -P)
$__dirname/../node_modules/electron-prebuilt/cli.js src "$@"
pushd . > /dev/null
while([ -h "${SCRIPT_PATH}" ]); do
cd "`dirname "${SCRIPT_PATH}"`"
SCRIPT_PATH="$(readlink "`basename "${SCRIPT_PATH}"`")";
cd "`dirname "${SCRIPT_PATH}"`" > /dev/null
popd > /dev/null
${SCRIPT_PATH}/../node_modules/electron-prebuilt/cli.js ${SCRIPT_PATH}/../src "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment