From 3260ef8a602bb8deaff9fffc4fa5a40f6417c8f9 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Mon, 27 Sep 2010 10:34:23 -0700 Subject: [PATCH] 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. --- install-symlinks.sh | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) 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}` -- 1.6.6.rc1.39.g9a42