Commit 50031f4b authored by Stanley Shyiko's avatar Stanley Shyiko

Fixed path resolution (when globally installed)

parent c023a902
#!/bin/bash
__dirname=$(cd ${0%/*} && pwd -P)
$__dirname/../node_modules/electron-prebuilt/cli.js src "$@"
pushd . > /dev/null
SCRIPT_PATH="${BASH_SOURCE[0]}";
while([ -h "${SCRIPT_PATH}" ]); do
cd "`dirname "${SCRIPT_PATH}"`"
SCRIPT_PATH="$(readlink "`basename "${SCRIPT_PATH}"`")";
done
cd "`dirname "${SCRIPT_PATH}"`" > /dev/null
SCRIPT_PATH="`pwd`";
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