You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2019/11/08 12:18:10 UTC

[airflow-site] branch aip-11 updated: Exclude invalid link from checking (#144)

This is an automated email from the ASF dual-hosted git repository.

kamilbregula pushed a commit to branch aip-11
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


The following commit(s) were added to refs/heads/aip-11 by this push:
     new a35084e  Exclude invalid link from checking (#144)
a35084e is described below

commit a35084e270a6e312202215bcb26a375f8fa93517
Author: Kamil BreguĊ‚a <mi...@users.noreply.github.com>
AuthorDate: Fri Nov 8 13:18:02 2019 +0100

    Exclude invalid link from checking (#144)
---
 landing-pages/check-links.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/landing-pages/check-links.sh b/landing-pages/check-links.sh
index 6289b40..8ce10cd 100755
--- a/landing-pages/check-links.sh
+++ b/landing-pages/check-links.sh
@@ -63,7 +63,7 @@ echo "Found ${#pages[@]} HTML files."
 
 echo "Searching links."
 mapfile -t links < <(printf '%s\n' "${pages[@]}" | xargs -n 1 lynx -listonly -nonumbers -dump | grep -v " ")
-mapfile -t external_links < <(printf '%s\n' "${links[@]}" | grep "^https\?://" | grep -v "http://localhost" | sort | uniq)
+mapfile -t external_links < <(printf '%s\n' "${links[@]}" | grep "^https\?://" | grep -v "http://localhost" | grep -v "http://link/" | sort | uniq)
 echo "Found ${#links[@]} links including ${#external_links[@]} unique external links."
 
 echo "Checking links."