fix readlink() for /bin/sh != bash

This commit is contained in:
Ludwig Nussel 2006-10-18 19:11:19 +00:00
parent 3089de8f42
commit fe3e8ba879

View file

@ -5,7 +5,7 @@ readlink() {
if [ -L "$path" ]; then
ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
echo "${ll/* -> }"
echo "${ll##* -> }"
else
return 1
fi