mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
fix readlink() for /bin/sh != bash
This commit is contained in:
parent
3089de8f42
commit
fe3e8ba879
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue