render-assets.sh
Bourne-Again shell script, ASCII text executable
1#!/usr/bin/env bash 2set -ueo pipefail 3 4# Make sure that parallel is GNU parallel and not moreutils. 5# Otherwise, it fails silently. There's no smooth way to detect this. 6if command -v parallel >/dev/null; then 7cmd=(parallel) 8else 9cmd=(xargs -n1) 10fi 11 12"${cmd[@]}" ./render-asset.sh "$1" <assets.txt 13