Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
0d498257
...
0d498257b699d40a13eaca27e1452719dc3ed52a
authored
2011-12-17 19:57:44 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed issue when casper executable is symlinked
1 parent
8521d467
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
bin/casperjs
bin/casperjs
View file @
0d49825
#!/usr/bin/env bash
CASPERJS_HOME
=
"
$(
cd
-P
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
cd
..
&&
pwd
)
"
CASPER_EXECUTABLE
=
${
BASH_SOURCE
[0]
}
if
[
-e
"
$CASPER_EXECUTABLE
"
]
;
then
CASPER_EXECUTABLE
=
"
$(
readlink
$CASPER_EXECUTABLE
)
"
fi
CASPERJS_HOME
=
"
$(
cd
-PL
"
$(
dirname
"
$CASPER_EXECUTABLE
"
)
"
&&
cd
..
&&
pwd
)
"
phantomjs
$CASPERJS_HOME
/casper.js --casper-path
=
$CASPERJS_HOME
$*
...
...
Please
register
or
sign in
to post a comment