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