diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2023-01-25 14:37:40 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2023-01-25 14:37:40 -0700 |
commit | b9401b2a988e4ed3d5fe472ed47cb75faf6cf1a0 (patch) | |
tree | 32ca5c85f78ca4d40967ca0a3e9a39172219f53b /bin/insinuate-dotfiles | |
parent | f4875e2e54d98e5b1a187457da16fed4b2ecef31 (diff) | |
download | dotfiles-b9401b2a988e4ed3d5fe472ed47cb75faf6cf1a0.tar.gz |
insinuate-dotfiles: stow slightly earlier
This avoids some possible shell initialisation errors that could occur when
the contents of the Git repo has been updated but we haven't restowed.
Diffstat (limited to 'bin/insinuate-dotfiles')
-rwxr-xr-x | bin/insinuate-dotfiles | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/insinuate-dotfiles b/bin/insinuate-dotfiles index 2d4d0f91..5804a24c 100755 --- a/bin/insinuate-dotfiles +++ b/bin/insinuate-dotfiles @@ -50,10 +50,11 @@ tar -C"$temp/.." -zcf - "$(basename $temp)" \ | ssh "$1" 'tar --strip-components=1 -Csrc/dotfiles -zxf -' rm -rf "$temp" +# stow dotfiles into $HOME +ssh "$1" "sh src/dotfiles/bin/bstraph" + # copy my gpg key over there so I can use `mr up` to update dotfiles if ssh "$1" which gpg >/dev/null; then gpg --export-options export-minimal --export spwhitton@spwhitton.name \ | ssh "$1" gpg --import fi -# stow dotfiles into $HOME -ssh "$1" 'sh src/dotfiles/bin/bstraph' |