]> git.99rst.org Git - stevenblack-hosts.git/commitdiff
sourcestats.sh: check for required tools
authorXhmikosR <redacted>
Sun, 5 Jul 2026 15:11:18 +0000 (18:11 +0300)
committerGitHub <redacted>
Sun, 5 Jul 2026 15:11:18 +0000 (18:11 +0300)
sourcestats.sh

index 1dcc3d9a07d6b379b38f32a3062adcddddab7802..4be279f201c1432429790ab5784d6ca5e0731047 100755 (executable)
@@ -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
git clone https://git.99rst.org/PROJECT