Skip to content

Commit

Permalink
fix readlink() for /bin/sh != bash
Browse files Browse the repository at this point in the history
  • Loading branch information
lnussel committed Oct 18, 2006
1 parent 3089de8 commit fe3e8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/unix/setup/ioquake3.sh
Expand Up @@ -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
Expand Down

0 comments on commit fe3e8ba

Please sign in to comment.