Update Checker: Link Status
This commit is contained in:
parent
4250a5fb9c
commit
8cb881c7bb
|
@ -209,19 +209,16 @@ if (( "$gsl_count_links" > 0 ));then
|
|||
'%{http_code}' \
|
||||
"$gsl_post_hf_2" 2>/dev/null`
|
||||
|
||||
if (( $gsl_url_status == 200 )) || \
|
||||
(( $gsl_url_status == 301 )) || \
|
||||
(( $gsl_url_status == 302 ));then
|
||||
|
||||
case "$gsl_url_status" in
|
||||
1*|2*|3*)
|
||||
gsl__logs_print \
|
||||
"$gsl_log_i" \
|
||||
"Post" \
|
||||
"$gsl_log_h_link" \
|
||||
"Online:$gsl_url_status ${gsl_post_hf_2:0:40}..." \
|
||||
"${PWD}/$gsl_post"
|
||||
|
||||
else
|
||||
|
||||
;;
|
||||
""|*)
|
||||
gsl__logs_print \
|
||||
"$gsl_log_e" \
|
||||
"Post" \
|
||||
|
@ -230,8 +227,8 @@ if (( "$gsl_count_links" > 0 ));then
|
|||
"${PWD}/$gsl_post"
|
||||
gsl_checker_err=true
|
||||
return
|
||||
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# Stats
|
||||
((gsl_stat_link++))
|
||||
|
|
Loading…
Reference in New Issue