Add warning if curl failed

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2021-08-30 15:55:42 +02:00
parent 31c7c019cb
commit 21897d7fbd
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD
2 changed files with 8 additions and 5 deletions

View file

@ -1336,7 +1336,6 @@ curl_to_tricorder() {
# transmit he log via TLS and store the token returned in a variable
tricorder_token=$(curl --silent --upload-file ${PIHOLE_DEBUG_LOG} https://tricorder.pi-hole.net)
if [ -z "${tricorder_token}" ]; then
# curl failed, fallback to nc
log_write " * ${COL_GREEN}curl${COL_NC} failed, contact Pi-hole support for assistance."
fi
}