Update Checker: Link Status

This commit is contained in:
Cyrille L 2022-03-06 10:55:41 +01:00
parent 4250a5fb9c
commit 8cb881c7bb
1 changed files with 20 additions and 23 deletions

View File

@ -209,29 +209,26 @@ if (( "$gsl_count_links" > 0 ));then
'%{http_code}' \ '%{http_code}' \
"$gsl_post_hf_2" 2>/dev/null` "$gsl_post_hf_2" 2>/dev/null`
if (( $gsl_url_status == 200 )) || \ case "$gsl_url_status" in
(( $gsl_url_status == 301 )) || \ 1*|2*|3*)
(( $gsl_url_status == 302 ));then gsl__logs_print \
"$gsl_log_i" \
gsl__logs_print \ "Post" \
"$gsl_log_i" \ "$gsl_log_h_link" \
"Post" \ "Online:$gsl_url_status ${gsl_post_hf_2:0:40}..." \
"$gsl_log_h_link" \ "${PWD}/$gsl_post"
"Online:$gsl_url_status ${gsl_post_hf_2:0:40}..." \ ;;
"${PWD}/$gsl_post" ""|*)
gsl__logs_print \
else "$gsl_log_e" \
"Post" \
gsl__logs_print \ "$gsl_log_h_link" \
"$gsl_log_e" \ "Offline:$gsl_url_status ${gsl_post_hf_2:0:40}..." \
"Post" \ "${PWD}/$gsl_post"
"$gsl_log_h_link" \ gsl_checker_err=true
"Offline:$gsl_url_status ${gsl_post_hf_2:0:40}..." \ return
"${PWD}/$gsl_post" ;;
gsl_checker_err=true esac
return
fi
# Stats # Stats
((gsl_stat_link++)) ((gsl_stat_link++))