From 4acbfaa6c2573ae0f3899c63a32b0c9ec6712214 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 5 Jul 2026 18:11:18 +0300 Subject: [PATCH] sourcestats.sh: check for required tools --- sourcestats.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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