diff options
author | Alan Pearce | 2017-07-17 21:15:04 +0200 |
---|---|---|
committer | Alan Pearce | 2017-07-17 21:15:04 +0200 |
commit | d4637e2b2616ef9975f144f4fb77d2a8758ef075 (patch) | |
tree | 6e41a520b922d86ee623845a4f1006cc4428899a /adopt | |
parent | 04f12bf003757d4077dc65f3c47197cb68bd5867 (diff) | |
download | dotfiles-d4637e2b2616ef9975f144f4fb77d2a8758ef075.tar.lz dotfiles-d4637e2b2616ef9975f144f4fb77d2a8758ef075.tar.zst dotfiles-d4637e2b2616ef9975f144f4fb77d2a8758ef075.zip |
adopt: Use stow to create backlinks
Diffstat (limited to 'adopt')
-rwxr-xr-x | adopt | 4 |
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 |