From aab3d6e775d275e9d86d644f6c42915047b6f6c7 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Thu, 24 Nov 2022 22:57:29 +0000
Subject: [PATCH] Control concurrency of on-local-blogs via environment
 variable

---
 bin/on-all-blogs   | 2 +-
 bin/on-local-blogs | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/bin/on-all-blogs b/bin/on-all-blogs
index 15240b5..32cee2f 100755
--- a/bin/on-all-blogs
+++ b/bin/on-all-blogs
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Run a 'noblogs' command on all blogs.
 #
diff --git a/bin/on-local-blogs b/bin/on-local-blogs
index ece05ae..af478f8 100755
--- a/bin/on-local-blogs
+++ b/bin/on-local-blogs
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Run a 'noblogs' command on just those blogs that are hosted
 # on this server.
@@ -16,5 +16,4 @@ dir=${dir:-.}
 abs_dir=$(cd ${dir} && pwd)
 
 ${dir}/noblogs print-local-blogs | grep -v Warning \
-    | xargs -n 30 ${abs_dir}/noblogs "$@"
-
+    | xargs -n ${CONCURRENCY:-30} ${abs_dir}/noblogs "$@"
-- 
GitLab