summaryrefslogtreecommitdiff
path: root/standalone/linux/skel/git-annex-webapp
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-05-16 16:22:50 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-05-16 16:22:56 -0400
commit82de2fdb249acccbc910237bbee350ec664cc142 (patch)
tree42f6eba10069435d528e232456e19869dc17b48c /standalone/linux/skel/git-annex-webapp
parentf4b3a2aee0052962f3f82c03f137c62f17d64e18 (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-xstandalone/linux/skel/git-annex-webapp2
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