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

Linux start script fails when symbolic link #3

Closed
miurahr opened this issue Aug 26, 2015 · 2 comments
Closed

Linux start script fails when symbolic link #3

miurahr opened this issue Aug 26, 2015 · 2 comments
Assignees

Comments

@miurahr
Copy link
Contributor

miurahr commented Aug 26, 2015

When installing SuperTMXMerge on /opt/SuperTMXMerge/ and making symbolic link
ln -s /opt/SuperTMXMerge/SuperTMXMerge.sh /usr/local/bin/supertmxmerge
It fails.

It should be changed like followings:

SCRIPT_DIR=$(dirname "$(readlink -f $0)")
java -jar "$SCRIPT_DIR/SuperTMXMerge.jar" "$@"

With this, script can follow symbolic link and start properly.

@amake amake self-assigned this Aug 26, 2015
@amake
Copy link
Owner

amake commented Aug 26, 2015

Thanks for the report. readlink is not available on OS X, but I suppose it's not unreasonable to use it since OS X has a separate .app bundle.

@amake
Copy link
Owner

amake commented Sep 2, 2015

Fixed in v1.2.

@amake amake closed this as completed Sep 2, 2015
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

No branches or pull requests

2 participants