add check for sed

This commit is contained in:
Elijah R 2023-12-19 17:41:25 -05:00
parent 53f128de07
commit 0cde13613a
2 changed files with 8 additions and 1 deletions

View file

@ -4,6 +4,10 @@ if ! command -v curl >/dev/null; then
echo 'curl is required for this script to run.'
exit 1
fi
if ! command -v sed >/dev/null; then
echo 'sed is required for this script to run.'
exit 1
fi
curl https://big.oisd.nl/domainswild2 -o oisd/big
curl https://nsfw.oisd.nl/domainswild2 -o oisd/nsfw
sed -i '1s|^|#listcategory: "oisd nsfw (Report False Block: https://oisd.nl/report)"\n|' oisd/nsfw

View file

@ -7,7 +7,10 @@ if ! command -v tar >/dev/null; then
echo 'tar is required for this script to work.'
exit 1
fi
if ! command -v sed >/dev/null; then
echo 'sed is required for this script to run.'
exit 1
fi
categories=("adult" "dating" "lingerie" "remote-control" "sexual_education" "vpn" "redirector")
for category in "${categories[@]}"; do
mkdir -p "ut1/$category"