Skip to content

Instantly share code, notes, and snippets.

Avatar

Zane H cabloo

View GitHub Profile
@mjambon
mjambon / parallel
Last active Jul 15, 2022
bash: Run parallel commands and fail if any of them fails
View parallel
#! /usr/bin/env bash
#
# Run parallel commands and fail if any of them fails.
#
set -eu
pids=()
for x in 1 2 3; do