summaryrefslogtreecommitdiff
path: root/standalone/linux/skel/git-annex
diff options
context:
space:
mode:
Diffstat (limited to 'standalone/linux/skel/git-annex')
-rwxr-xr-xstandalone/linux/skel/git-annex2
1 files changed, 1 insertions, 1 deletions
diff --git a/standalone/linux/skel/git-annex b/standalone/linux/skel/git-annex
index 27df466e4..7fc864d87 100755
--- a/standalone/linux/skel/git-annex
+++ b/standalone/linux/skel/git-annex
@@ -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