mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-03 23:38:29 +00:00
Improve dig error handlin in api.sh
Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
parent
5d5bddc979
commit
cadee26dba
1 changed files with 6 additions and 0 deletions
|
@ -34,6 +34,12 @@ TestAPIAvailability() {
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# If an error occurred, the variable starts with ;;
|
||||
if [ "${chaos_api_list#;;}" != "${chaos_api_list}" ]; then
|
||||
echo "Communication error. Is FTL running?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Iterate over space-separated list of URLs
|
||||
while [ -n "${chaos_api_list}" ]; do
|
||||
# Get the first URL
|
||||
|
|
Loading…
Add table
Reference in a new issue