From: Colin Patrick McCabe Date: Sun, 2 Jan 2011 20:37:09 +0000 (-0800) Subject: install-symlinks: ignore .gitignore X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f3cc0b30f3213d791d5c613780225270017eed;p=cmccabe-etc install-symlinks: ignore .gitignore Signed-off-by: Colin McCabe --- diff --git a/install-symlinks.sh b/install-symlinks.sh index d381326..17e0f0a 100755 --- a/install-symlinks.sh +++ b/install-symlinks.sh @@ -24,9 +24,8 @@ for file in ${BASEDIR}/.[^.]*; do relfile=`echo ${file} | sed 's_.*/\([^/]*/[^/]*\)$_\1_'` # skip files which we don't want to link - if [ "${basefile}" == ".git" ]; then - continue; - fi + [ "${basefile}" == ".git" ] && continue + [ "${basefile}" == ".gitignore" ] && continue pushd .. > /dev/null if [ -L ${basefile} ]; then