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
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue