remove GNU specific readlink -f

This commit is contained in:
zawwz 2020-11-27 16:24:58 +01:00
parent d7c91472e6
commit df905f1238

View file

@ -31,8 +31,10 @@ sanitize_paths()
# $1 = file
getpath() {
if [ -n "$ZPASS_REMOTE_ADDR" ]
then echo "$ZPASS_REMOTE_PORT:$ZPASS_REMOTE_ADDR:$file"
else readlink -f "$file"
then
echo "$ZPASS_REMOTE_PORT:$ZPASS_REMOTE_ADDR:$file"
else
echo "$(pwd)/$file"
fi
}