From: tfheen Date: Wed, 16 Oct 2002 00:21:53 +0000 (+0000) Subject: link recursively X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbe02f053d51cb6d56a244fe697bb25fa5fb3b32;p=dotfiles link recursively git-svn-id: file:///svn/tfheen/trunk/dotfiles@71 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/link-dotfiles b/link-dotfiles index 272ef3a..badbf97 100755 --- a/link-dotfiles +++ b/link-dotfiles @@ -22,7 +22,11 @@ linkdir () { for file in $1/*; do file=`basename $file` if test -d "$1/$file"; then - : + if ! test -d "$2/.$file"; then + mkdir $2/.$file + fi + linkdir $1/$file $2/.$file + continue elif ! test -f "$1/$file"; then continue fi