Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
forks
electron-har
Commits
50031f4b
Commit
50031f4b
authored
Dec 09, 2015
by
Stanley Shyiko
Browse files
Fixed path resolution (when globally installed)
parent
c023a902
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/electron-har
View file @
50031f4b
#!/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
"
$@
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment