Fix bug in install-symlinks
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 18 Feb 2010 23:19:58 +0000 (15:19 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 18 Feb 2010 23:19:58 +0000 (15:19 -0800)
Fix a bug in install-symlinks where we were unable to recognize
non-existant files

install-symlinks.sh

index 3588ed2..f922179 100755 (executable)
@@ -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}..."