From: Colin Patrick McCabe Date: Mon, 27 Sep 2010 17:34:23 +0000 (-0700) Subject: install-symlinks: don't use readlink -f X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3260ef8a602bb8deaff9fffc4fa5a40f6417c8f9;p=cmccabe-etc install-symlinks: don't use readlink -f readlink -f is a linux-ism that doesn't work on MacOS or BSD. Just use pwd instead. --- diff --git a/install-symlinks.sh b/install-symlinks.sh index 41bda44..d381326 100755 --- a/install-symlinks.sh +++ b/install-symlinks.sh @@ -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}`