render-assets.sh
Bourne-Again shell script, ASCII text executable
1
#!/bin/bash
2
set -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.
6
if command -v parallel >/dev/null; then
7
cmd=(parallel)
8
else
9
cmd=(xargs -n1)
10
fi
11
12
"${cmd[@]}" ./render-asset.sh < assets.txt
13