From: XhmikosR Date: Sun, 5 Jul 2026 15:11:18 +0000 (+0300) Subject: sourcestats.sh: check for required tools X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4acbfaa6c2573ae0f3899c63a32b0c9ec6712214;p=stevenblack-hosts.git sourcestats.sh: check for required tools --- diff --git a/sourcestats.sh b/sourcestats.sh index 1dcc3d9a0..4be279f20 100755 --- a/sourcestats.sh +++ b/sourcestats.sh @@ -4,6 +4,14 @@ set -euo pipefail +# Ensure required tools are installed +for tool in git rh; do + if ! command -v "${tool}" > /dev/null 2>&1; then + echo "Error: ${tool} not found in PATH" >&2 + exit 1 + fi +done + lists=( alternates/fakenews alternates/fakenews-gambling