mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-14 11:29:04 +00:00
Use --no-progress-meter instead of --silent so error reasons are printed
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
21897d7fbd
commit
115e3eeda9
1 changed files with 2 additions and 2 deletions
4
pihole
4
pihole
|
@ -405,9 +405,9 @@ tricorderFunc() {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Upload successful, your token is: ${COL_BLUE}${tricorder_token}${COL_NC}"
|
echo "Upload successful, your token is: ${COL_BLUE}${tricorder_token}${COL_NC}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue