]> err.no Git - dotfiles/commitdiff
link recursively
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Wed, 16 Oct 2002 00:21:53 +0000 (00:21 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Wed, 16 Oct 2002 00:21:53 +0000 (00:21 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@71 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

link-dotfiles

index 272ef3a12c78e26a449befd94b5ed6234052405e..badbf97f1b1f788591d65660089c38bc26486728 100755 (executable)
@@ -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