Test contre le test de lien

This commit is contained in:
Adrien Bourmault 2022-04-12 01:20:16 +02:00
parent 25eaee1c87
commit 6d2dd24295
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 3 additions and 7 deletions

View File

@ -211,7 +211,7 @@ if (( "$gsl_count_links" > 0 ));then
"$gsl_post_hf_2" 2>/dev/null || echo "408"` "$gsl_post_hf_2" 2>/dev/null || echo "408"`
case "$gsl_url_status" in case "$gsl_url_status" in
1*|2*|3*) 0*|1*|2*|3*)
gsl__logs_print \ gsl__logs_print \
"$gsl_log_i" \ "$gsl_log_i" \
"Post" \ "Post" \
@ -221,15 +221,12 @@ if (( "$gsl_count_links" > 0 ));then
;; ;;
""|*) ""|*)
gsl__logs_print \ gsl__logs_print \
"$gsl_log_e" \ "$gsl_log_w" \
"Post" \ "Post" \
"$gsl_log_h_link" \ "$gsl_log_h_link" \
"Offline:$gsl_url_status ${gsl_post_hf_2:0:40}..." \ "Offline:$gsl_url_status ${gsl_post_hf_2:0:40}..." \
"${PWD}/$gsl_post" "${PWD}/$gsl_post"
# Decomment below if you want the error link avoiding convertion
#gsl_checker_err=true
gsl_checker_war=true gsl_checker_war=true
#return
;; ;;
esac esac
@ -245,8 +242,7 @@ else
"$gsl_log_c_link" \ "$gsl_log_c_link" \
"Missing: _$gsl_post_hf_1" \ "Missing: _$gsl_post_hf_1" \
"${PWD}/$gsl_post" "${PWD}/$gsl_post"
#gsl_checker_err=true gsl_checker_err=true
gsl_checker_war=true
fi fi
} }