added exception for 302 response codes to prevent false positives

pull/10/head
Aaron Johnon 2 years ago committed by Gitea
parent 097c96f809
commit 2f7e955b29

@ -172,6 +172,10 @@ for site in $(read_checklist); do
printf '%s\n' "[$(print_time)]: OK -- $site returns $respcode" printf '%s\n' "[$(print_time)]: OK -- $site returns $respcode"
db_dec $site db_dec $site
;; ;;
302)
printf '%s\n' "[$(print_time)]: WARNING -- $site returns $respcode"
db_dec $site
;;
999) 999)
printf '%s\n' "[$(print_time)]: PROBLEM -- $site caused general cURL failure" >&2 printf '%s\n' "[$(print_time)]: PROBLEM -- $site caused general cURL failure" >&2
db_inc $site db_inc $site

Loading…
Cancel
Save