fix readlink() for /bin/sh != bash
This commit is contained in:
1 parent
3089de8f42
commit
fe3e8ba879
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user