From 6d2dd24295e62c91f929f7bad09303cf45a81d80 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 12 Apr 2022 01:20:16 +0200 Subject: [PATCH] Test contre le test de lien --- var/lib/gsl/scripts/gsl__post_checkers | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/var/lib/gsl/scripts/gsl__post_checkers b/var/lib/gsl/scripts/gsl__post_checkers index 694a4e4..646f5b0 100644 --- a/var/lib/gsl/scripts/gsl__post_checkers +++ b/var/lib/gsl/scripts/gsl__post_checkers @@ -211,7 +211,7 @@ if (( "$gsl_count_links" > 0 ));then "$gsl_post_hf_2" 2>/dev/null || echo "408"` case "$gsl_url_status" in - 1*|2*|3*) + 0*|1*|2*|3*) gsl__logs_print \ "$gsl_log_i" \ "Post" \ @@ -221,15 +221,12 @@ if (( "$gsl_count_links" > 0 ));then ;; ""|*) gsl__logs_print \ - "$gsl_log_e" \ + "$gsl_log_w" \ "Post" \ "$gsl_log_h_link" \ "Offline:$gsl_url_status ${gsl_post_hf_2:0:40}..." \ "${PWD}/$gsl_post" - # Decomment below if you want the error link avoiding convertion - #gsl_checker_err=true gsl_checker_war=true - #return ;; esac @@ -245,8 +242,7 @@ else "$gsl_log_c_link" \ "Missing: _$gsl_post_hf_1" \ "${PWD}/$gsl_post" - #gsl_checker_err=true - gsl_checker_war=true + gsl_checker_err=true fi }