diff options
author | Joey Hess <joey@kitenet.net> | 2014-05-16 16:22:50 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-05-16 16:22:56 -0400 |
commit | 82de2fdb249acccbc910237bbee350ec664cc142 (patch) | |
tree | 42f6eba10069435d528e232456e19869dc17b48c /standalone/linux/skel/git-annex-webapp | |
parent | f4b3a2aee0052962f3f82c03f137c62f17d64e18 (diff) |
Support symlinking git-annex and git-annex-shell from the Linux standalone bundle into PATH.
Unless busybox doesn't support readlink -f, then it just uses readlink and
symlinking won't work. Also, OSX has no readlink -f so not done there.
Thanks, jlebar.
Diffstat (limited to 'standalone/linux/skel/git-annex-webapp')
-rwxr-xr-x | standalone/linux/skel/git-annex-webapp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/standalone/linux/skel/git-annex-webapp b/standalone/linux/skel/git-annex-webapp index acf2a5135..24a533969 100755 --- a/standalone/linux/skel/git-annex-webapp +++ b/standalone/linux/skel/git-annex-webapp @@ -1,5 +1,5 @@ #!/bin/sh -link="$(readlink "$0")" || true +link="$(readlink -f "$0" 2>/dev/null || readlink "$0")" || true if [ -n "$link" ]; then base="$(dirname "$link")" else |