install-symlinks: don't use readlink -f
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 27 Sep 2010 17:34:23 +0000 (10:34 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 27 Sep 2010 17:34:23 +0000 (10:34 -0700)
readlink -f is a linux-ism that doesn't work on MacOS or BSD. Just use
pwd instead.

install-symlinks.sh

index 41bda44..d381326 100755 (executable)
@@ -15,8 +15,7 @@ die() {
        exit 1
 }
 
-FULLPATH=`readlink -f $0`
-BASEDIR=`dirname ${FULLPATH}`
+BASEDIR=`pwd`
 for file in ${BASEDIR}/.[^.]*; do
        # get base file name, like ".gitconfig"
        basefile=`basename ${file}`