check for missing .onion capsules
This commit is contained in:
parent
a86d7b467d
commit
9425ca5b0d
|
@ -60,6 +60,11 @@ hosts=$(echo "$hosts" | grep '\.\|:')
|
|||
# Remove explicitly excluded hosts.
|
||||
hosts=$(echo "$hosts" | grep -vxEf excluded-hosts)
|
||||
|
||||
if ! echo "$hosts" | grep -qE '\.onion(:.*)?$'; then
|
||||
>&2 echo "The .onions are missing!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$hosts" ]; then
|
||||
>&2 echo "hosts file downloads failed."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue