From b9401b2a988e4ed3d5fe472ed47cb75faf6cf1a0 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 25 Jan 2023 14:37:40 -0700 Subject: 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. --- bin/insinuate-dotfiles | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') 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' -- cgit v1.2.3