From aef166e300ea2f76a31606db60f3ece8c3c53361 Mon Sep 17 00:00:00 2001 From: Adam Schmideg Date: Tue, 26 Mar 2019 16:24:07 +0100 Subject: [PATCH] Script to check redirects --- bin/check_redirect.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 bin/check_redirect.sh diff --git a/bin/check_redirect.sh b/bin/check_redirect.sh new file mode 100755 index 0000000000..16c0634326 --- /dev/null +++ b/bin/check_redirect.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +urls=( + "http://geth.ethereum.org" + "https://geth.ethereum.org" + "http://geth.ethereum.org/" + "https://geth.ethereum.org/" + "http://geth.ethereum.org/install" + "https://geth.ethereum.org/install" + "http://geth.ethereum.org/install/" + "https://geth.ethereum.org/install/" + "http://ethereum.github.io/go-ethereum" + "https://ethereum.github.io/go-ethereum" + "http://ethereum.github.io/go-ethereum/" + "https://ethereum.github.io/go-ethereum/" + "http://ethereum.github.io/go-ethereum/install" + "https://ethereum.github.io/go-ethereum/install" + "http://ethereum.github.io/go-ethereum/install/" + "https://ethereum.github.io/go-ethereum/install/" +) +for u in "${urls[@]}" +do + echo "$u -> $(curl $u -w --silent -I 2>&1 | grep Location)" +done