summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-07-17 21:15:04 +0200
committerAlan Pearce2017-07-17 21:15:04 +0200
commitd4637e2b2616ef9975f144f4fb77d2a8758ef075 (patch)
tree6e41a520b922d86ee623845a4f1006cc4428899a
parent04f12bf003757d4077dc65f3c47197cb68bd5867 (diff)
downloaddotfiles-d4637e2b2616ef9975f144f4fb77d2a8758ef075.tar.lz
dotfiles-d4637e2b2616ef9975f144f4fb77d2a8758ef075.tar.zst
dotfiles-d4637e2b2616ef9975f144f4fb77d2a8758ef075.zip
adopt: Use stow to create backlinks
-rwxr-xr-xadopt4
1 files changed, 2 insertions, 2 deletions
diff --git a/adopt b/adopt
index 94509c3..a0a210f 100755
--- a/adopt
+++ b/adopt
@@ -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