mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-24 06:10:20 +01:00
sourcestats.sh: check for required tools
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user