From: Colin Patrick McCabe Date: Thu, 18 Feb 2010 23:19:58 +0000 (-0800) Subject: Fix bug in install-symlinks X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87d1b9b9a2e878a7743995657c1fd807d634022b;p=cmccabe-etc Fix bug in install-symlinks Fix a bug in install-symlinks where we were unable to recognize non-existant files --- diff --git a/install-symlinks.sh b/install-symlinks.sh index 3588ed2..f922179 100755 --- a/install-symlinks.sh +++ b/install-symlinks.sh @@ -33,7 +33,7 @@ for file in ${BASEDIR}/.[^.]*; do if [ -L ${basefile} ]; then # Someone already created this link. Pass over it in silence : - elif [ -z ${basefile} ]; then + elif [ ! -a ${basefile} ]; then # Create the link ln -s ${relfile} || die "failed to link ${relfile}" echo "created ${relfile}..."