Add "parallel update" script to generate multiple markdown files simultaneously
This commit is contained in:
parent
b99152544d
commit
b3a7329ba4
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||||
|
||||
images=( */ )
|
||||
images=( "${images[@]%/}" )
|
||||
|
||||
: "${PARALLELISM:=$(( $(nproc) * 2 ))}"
|
||||
|
||||
xargs -rtn1 -P "$PARALLELISM" ./update.sh "$@" <<<"${images[*]}"
|
||||
Loading…
Reference in New Issue