all repos — archive/dotfiles @ d4637e2b2616ef9975f144f4fb77d2a8758ef075

Superseded by nixfiles

adopt: Use stow to create backlinks
Alan Pearce alan@alanpearce.eu
Mon, 17 Jul 2017 21:15:04 +0200
commit

d4637e2b2616ef9975f144f4fb77d2a8758ef075

parent

04f12bf003757d4077dc65f3c47197cb68bd5867

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M adoptadopt
@@ -15,7 +15,7 @@ then     mkdir -p $TARGET
   fi
   mv $2/* $TARGET
-  ln -s $TARGET/* "$2"
+  ./stow $1
 elif [ -f $2 ]
 then
   TARGET="$DOTFILES_DIR/$1/$(dirname $2)"
@@ -24,5 +24,5 @@ then     mkdir -p $TARGET
   fi
   mv $2 $TARGET
-  ln -s $TARGET/$(basename $2)
+  ./stow $1
 fi