Fix bug in install-symlinks
[cmccabe-etc] / 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}..."