install-symlinks: ignore .gitignore
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sun, 2 Jan 2011 20:37:09 +0000 (12:37 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sun, 2 Jan 2011 20:37:09 +0000 (12:37 -0800)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

install-symlinks.sh

index d381326..17e0f0a 100755 (executable)
@@ -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