Arc-39-theme/common/gtk-3.0/3.18/render-assets.sh

13 lines
297 B
Bash
Executable File

#!/bin/bash
set -ueo pipefail
# Make sure that parallel is GNU parallel and not moreutils.
# Otherwise, it fails silently. There's no smooth way to detect this.
if [[ "$(which parallel 2> /dev/null)" ]]; then
cmd=(parallel)
else
cmd=(xargs -n1)
fi
"${cmd[@]}" ./render-asset.sh < assets.txt