From fe3e8ba8793ef907667a7355266a31d80f93ccde Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Wed, 18 Oct 2006 19:11:19 +0000 Subject: [PATCH] fix readlink() for /bin/sh != bash --- code/unix/setup/ioquake3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/unix/setup/ioquake3.sh b/code/unix/setup/ioquake3.sh index 0fd12950..fbef5676 100644 --- a/code/unix/setup/ioquake3.sh +++ b/code/unix/setup/ioquake3.sh @@ -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