aboutsummaryrefslogtreecommitdiff
path: root/afssh
diff options
context:
space:
mode:
Diffstat (limited to 'afssh')
-rwxr-xr-xafssh3
1 files changed, 2 insertions, 1 deletions
diff --git a/afssh b/afssh
index c482aea..3c715e3 100755
--- a/afssh
+++ b/afssh
@@ -52,7 +52,8 @@ fi
declare -a agent_filter_args
if [ -x "${BASH_SOURCE%/*}/ssh-agent-filter" ]; then
- SAF=$(readlink -f "${BASH_SOURCE%/*}/ssh-agent-filter")
+ type realpath >/dev/null 2>&1 || realpath () { readlink -f "$@"; }
+ SAF=$(realpath "${BASH_SOURCE%/*}/ssh-agent-filter")
else
SAF=$(which ssh-agent-filter)
fi