mirror of https://github.com/DrBeef/ioq3quest.git
fix readlink() for /bin/sh != bash
This commit is contained in:
parent
3089de8f42
commit
fe3e8ba879
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue