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 which parallel > /dev/null; then cmd=(parallel)
7
else cmd=(xargs -n1); fi
8
9
"${cmd[@]}" ./render-asset.sh < assets.txt
10