Skip to content

Commit b3a7329

Browse files
committed
Add "parallel update" script to generate multiple markdown files simultaneously
1 parent b991525 commit b3a7329

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

parallel-update.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
set -Eeuo pipefail
3+
4+
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
5+
6+
images=( */ )
7+
images=( "${images[@]%/}" )
8+
9+
: "${PARALLELISM:=$(( $(nproc) * 2 ))}"
10+
11+
xargs -rtn1 -P "$PARALLELISM" ./update.sh "$@" <<<"${images[*]}"

0 commit comments

Comments
 (0)