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
1 changed files with 1 additions and 1 deletions

View File

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