Use --no-progress-meter instead of --silent so error reasons are printed

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2021-08-30 20:20:45 +02:00
parent 21897d7fbd
commit 115e3eeda9
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

4
pihole
View file

@ -405,9 +405,9 @@ tricorderFunc() {
exit 1
fi
tricorder_token="$(curl --silent --upload-file "-" https://tricorder.pi-hole.net/upload < /dev/stdin)"
tricorder_token="$(curl --no-progress-meter --upload-file "-" https://tricorder.pi-hole.net/upload < /dev/stdin)"
if [ -z "${tricorder_token}" ]; then
echo -e "${CROSS} uploading failed failed, contact Pi-hole support for assistance."
echo -e "${CROSS} uploading failed, contact Pi-hole support for assistance."
exit 1
fi
echo "Upload successful, your token is: ${COL_BLUE}${tricorder_token}${COL_NC}"