Skip to content

Instantly share code, notes, and snippets.

View timm-oh's full-sized avatar
🐰

Tim McCarthy timm-oh

🐰
View GitHub Profile
@timm-oh
timm-oh / parallel
Created January 26, 2022 13:30 — forked from mjambon/parallel
bash: Run parallel commands and fail if any of them fails
#! /usr/bin/env bash
#
# Run parallel commands and fail if any of them fails.
#
set -eu
pids=()
for x in 1 2 3; do