diff options
author | Alan Pearce | 2017-08-29 21:12:35 +0200 |
---|---|---|
committer | Alan Pearce | 2017-08-29 21:12:35 +0200 |
commit | f06e76405326ad7979ba5efe2408e89f802203b5 (patch) | |
tree | 4a28bb102d4dc1c2a0772a6dd9b34d1a4b72d1b4 | |
parent | 88611afbb0fd4dd8de05ff0f4a66a2e963ecf56e (diff) | |
download | dotfiles-f06e76405326ad7979ba5efe2408e89f802203b5.tar.lz dotfiles-f06e76405326ad7979ba5efe2408e89f802203b5.tar.zst dotfiles-f06e76405326ad7979ba5efe2408e89f802203b5.zip |
adopt: Use stow wrapper script
-rwxr-xr-x | adopt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/adopt b/adopt index a0a210f..6789a6b 100755 --- a/adopt +++ b/adopt @@ -1,5 +1,6 @@ #!/bin/sh DOTFILES_DIR=$(dirname $(readlink -f $0)) +STOW="$DOTFILES_DIR/stow" if [ "$#" -lt 2 ] then @@ -15,7 +16,7 @@ then mkdir -p $TARGET fi mv $2/* $TARGET - ./stow $1 + $STOW $1 elif [ -f $2 ] then TARGET="$DOTFILES_DIR/$1/$(dirname $2)" @@ -24,5 +25,5 @@ then mkdir -p $TARGET fi mv $2 $TARGET - ./stow $1 + $STOW $1 fi |