Merge pull request 'added exception for 302 response codes to prevent false positives' (#9) from 302exception into master

Reviewed-on: #9
pull/10/head
Aaron Johnson 2 years ago
commit 2f48382db0

@ -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