Post crash

This commit is contained in:
Geoffrey Frogeye 2020-08-20 21:38:48 +02:00
parent 7ebbfb5186
commit 42d8503928
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 40 additions and 22 deletions

View file

@ -416,7 +416,11 @@ machines_n_help() { machines_network_help "$@"; }
function machines_update-all {
machines_machine_list | while read -r machine; do
echo "Updating $machine..."
ssh "$machine" 'cd .dotfiles && git pull; machines update' &
if [ $machine = $(cat "$MACHINES_CONFIG/this.name") ]; then
machines_update
continue
fi
ssh -n "$machine" 'cd .dotfiles; git pull; ./config/scripts/machines update'
done
}