Fix readlink implementation to handle schemes with whitespace characters

This commit is contained in:
Nora Trapp 2019-12-30 16:43:56 -08:00
parent 04c02f8d1a
commit 0abc38a2cf

View File

@ -269,7 +269,7 @@ module Pod
# If the path isn't an absolute path, we add a realtive prefix.
old_read_link=`which readlink`
readlink () {
path=`$old_read_link $1`;
path=`$old_read_link "$1"`;
if [ $(echo "$path" | cut -c 1-1) = '/' ]; then
echo $path;
else