diff --git a/macs/mac-exec b/macs/mac-exec index 08b928db..ee9d752b 100755 --- a/macs/mac-exec +++ b/macs/mac-exec @@ -9,8 +9,12 @@ HOSTS=( "customer@eager-heisenberg.mac.nixos.org" "customer@kind-lumiere.mac.nixos.org" ) +PIDS=() for host in "${HOSTS[@]}"; do # shellcheck disable=SC2068 (ssh "${host}" -- $@ 2>&1| sed -e "s/^/${host} | /") & + PIDS+=($!) done + +wait "${PIDS[@]}"