diff options
author | Timo Weingärtner <timo@tiwe.de> | 2016-10-11 16:42:02 +0200 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2016-10-11 16:42:02 +0200 |
commit | 3944f8c3b52e23e7e617fbfa24307ce8c07757e6 (patch) | |
tree | 0f493ccd8aecf8ec4c40eaf00dc4a88583448694 | |
parent | 2f994963899ca8e039dd0aa38884693a9928e116 (diff) | |
download | ssh-agent-filter-3944f8c3b52e23e7e617fbfa24307ce8c07757e6.tar.gz |
fixup! afssh: use realpath instead of readlink -f, with fallback
-rwxr-xr-x | afssh | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -51,9 +51,8 @@ fi declare -a agent_filter_args -type realpath >/dev/null 2>&1 || realpath () { readlink -f "$@"; } - if [ -x "${BASH_SOURCE%/*}/ssh-agent-filter" ]; then + type realpath >/dev/null 2>&1 || realpath () { readlink -f "$@"; } SAF=$(realpath "${BASH_SOURCE%/*}/ssh-agent-filter") else SAF=$(which ssh-agent-filter) |