remove GNU specific readlink -f
This commit is contained in:
parent
d7c91472e6
commit
df905f1238
1 changed files with 4 additions and 2 deletions
|
|
@ -31,8 +31,10 @@ sanitize_paths()
|
||||||
# $1 = file
|
# $1 = file
|
||||||
getpath() {
|
getpath() {
|
||||||
if [ -n "$ZPASS_REMOTE_ADDR" ]
|
if [ -n "$ZPASS_REMOTE_ADDR" ]
|
||||||
then echo "$ZPASS_REMOTE_PORT:$ZPASS_REMOTE_ADDR:$file"
|
then
|
||||||
else readlink -f "$file"
|
echo "$ZPASS_REMOTE_PORT:$ZPASS_REMOTE_ADDR:$file"
|
||||||
|
else
|
||||||
|
echo "$(pwd)/$file"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue