sourcestats.sh: check for required tools

This commit is contained in:
XhmikosR
2026-07-05 18:11:18 +03:00
committed by GitHub
parent d6ca0b04fb
commit 4acbfaa6c2
+8
View File
@@ -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