Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #39 - Unable to follow symlinks. #45

Merged
merged 1 commit into from
Sep 27, 2013
Merged

Fixes #39 - Unable to follow symlinks. #45

merged 1 commit into from
Sep 27, 2013

Conversation

jsuereth
Copy link
Member

Turns out that we were naively going up a directoryon a bash script.

However, we should first find out where the bash script really is located,
then go up a directory and take the real directory of that to find the installation.

This is friendlier to our debian/rpm start scripts. Thanks to @muuki88 for diagnosing
and proposing an alternative solution.

Turns out that we were naively going up a directoryon a bash script.

However, we should first find out where the bash script *really* is located,
then go up a directory and take the real directory of that to find the installation.

This is friendlier to our debian/rpm start scripts.  Thanks to @muuki88 for diagnosing
and proposing an alternative solution.
@jsuereth
Copy link
Member Author

Review by @havocp

@@ -284,7 +284,8 @@ EOM
declare -a residual_args
declare -a java_args
declare -a app_commands
declare -r app_home="$(realpath "$(dirname "$0")")"
declare -r real_script_path="$(realpath "$0")"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As best I can tell from experimenting, you have the quoting correct here, but it's pretty confusing!

havocp added a commit that referenced this pull request Sep 27, 2013
Fixes #39 - Unable to follow symlinks.
@havocp havocp merged commit cef3dc7 into master Sep 27, 2013
@havocp havocp deleted the wip/symlinks branch September 27, 2013 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants