add check for sed
This commit is contained in:
parent
53f128de07
commit
0cde13613a
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue