Skip to content

Instantly share code, notes, and snippets.

View cabloo's full-sized avatar

Zane H cabloo

View GitHub Profile
@mjambon
mjambon / parallel
Last active June 6, 2025 08:11
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