aboutsummaryrefslogtreecommitdiff
path: root/standalone/linux/skel/git
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
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')
-rwxr-xr-xstandalone/linux/skel/git2
1 files changed, 1 insertions, 1 deletions
diff --git a/standalone/linux/skel/git b/standalone/linux/skel/git
index f32cf8193..7fbf82715 100755
--- a/standalone/linux/skel/git
+++ b/standalone/linux/skel/git
@@ -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