feat: enhance curl command in Check Annunci and Update scripts for better error visibility

This commit is contained in:
Marco Pedone 2026-01-13 11:14:39 +01:00
parent 19b4693512
commit 08212355eb
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
set -e # Exit on any error
echo "Starting Check Annunci job..."
if curl -f --connect-timeout 30 --max-time 300 "http://web:3000/api/trpc/annunci.checkAnnunci"; then
if curl -sS -f --connect-timeout 30 --max-time 300 "http://web:3000/api/trpc/annunci.checkAnnunci"; then
echo "Check Annunci job completed successfully"
else
echo "Failed to Check Annunci" >&2

View file

@ -2,7 +2,7 @@
set -e # Exit on any error
echo "Starting Update job..."
if curl -f --connect-timeout 30 --max-time 300 "http://localhost:1323/update"; then
if curl -sS -f --connect-timeout 30 --max-time 300 "http://localhost:1323/update"; then
echo "Update job completed successfully"
else
echo "Failed to Update" >&2