From: tfheen Date: Wed, 16 Oct 2002 00:30:32 +0000 (+0000) Subject: exclude CVS dirs X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23e9c7c3756482bbcd5b65ad0e06a1b0fa39c297;p=dotfiles exclude CVS dirs git-svn-id: file:///svn/tfheen/trunk/dotfiles@75 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/link-dotfiles b/link-dotfiles index 89ddbdf..f75ad52 100755 --- a/link-dotfiles +++ b/link-dotfiles @@ -21,13 +21,15 @@ fi linkdir () { for file in $1/*; do file=`basename $file` - if test -d "$1/$file"; then + if test "$file" = "CVS"; then + continue + elif test -d "$1/$file"; then if ! test -d "$2/$DOT$file"; then mkdir $2/$DOT$file fi local OLDDOT=$DOT local DOT= - linkdir $1/$file $2/$DOT$file + linkdir $1/$file $2/$OLDDOT$file DOT=$OLDDOT continue elif ! test -f "$1/$file"; then