1.0.41.48: make run-sbcl.sh work on Darwin (and presumably other BSD-clones)
[sbcl.git] / run-sbcl.sh
index 24c0b3d..83f40c1 100644 (file)
@@ -14,7 +14,7 @@
 set -e
 
 BASE=`dirname "$0"`
-BASE=`readlink -f ${BASE}`
+BASE=`(readlink -f ${BASE} 2> /dev/null || echo ${BASE})`
 CORE_DEFINED=no
 
 for arg in $*; do