r949 - trunk/code/unix/setup

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Oct 18 15:11:19 EDT 2006


Author: ludwig
Date: 2006-10-18 15:11:19 -0400 (Wed, 18 Oct 2006)
New Revision: 949

Modified:
   trunk/code/unix/setup/ioquake3.sh
Log:
fix readlink() for /bin/sh != bash


Modified: trunk/code/unix/setup/ioquake3.sh
===================================================================
--- trunk/code/unix/setup/ioquake3.sh	2006-10-15 20:17:49 UTC (rev 948)
+++ trunk/code/unix/setup/ioquake3.sh	2006-10-18 19:11:19 UTC (rev 949)
@@ -5,7 +5,7 @@
     
     if [ -L "$path" ]; then 
         ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
-        echo "${ll/* -> }"
+        echo "${ll##* -> }"
     else    
         return 1
     fi




More information about the quake3-commits mailing list