Fix: checker link status
This commit is contained in:
parent
37554d982f
commit
ff2d43a665
|
@ -46,6 +46,7 @@ case "$1" in
|
||||||
gsl__if_file "$gsl_dir_helps/gsl_help_write_post" read
|
gsl__if_file "$gsl_dir_helps/gsl_help_write_post" read
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
exit
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -207,9 +207,9 @@ if (( "$gsl_count_links" > 0 ));then
|
||||||
|
|
||||||
# Check URL
|
# Check URL
|
||||||
gsl_url_status=`
|
gsl_url_status=`
|
||||||
timeout 3 curl -o /dev/null --silent --head --write-out \
|
timeout 2 curl -o /dev/null --silent --head --write-out \
|
||||||
'%{http_code}' \
|
'%{http_code}' \
|
||||||
"$gsl_post_hf_2" 2>/dev/null || gsl_utl_status=408`
|
"$gsl_post_hf_2" 2>/dev/null || echo "408"`
|
||||||
|
|
||||||
case "$gsl_url_status" in
|
case "$gsl_url_status" in
|
||||||
1*|2*|3*)
|
1*|2*|3*)
|
||||||
|
|
Loading…
Reference in New Issue