| The latest version of anarki's arc.sh does not run on Mac OS X Tiger. The problem is with its version of bash, which does not like the line arc_dir=$(dirname $(readlink --canonicalize "$0"))
The readlink command does not take "--canonicalize" as an argument. Here is my proposed solution. if [ `uname` = 'Darwin' ] ; then
arc_dir=$(dirname "$0")
else
arc_dir=$(dirname $(readlink --canonicalize "$0"))
fi
Note that it gets rid of the readlink entirely. That's because Tiger's version of readlink prints nothing unless its argument is a link.Comments? |