Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (15 sloc) 0.389 kb
#!/bin/bash
address="http://$1"
response="301"
# Find redirected address
count=0
while [ $response == "301" ] || [ $response == "302" ]
do
address=$(curl -k --write-out %{url_effective} --silent --output /dev/null -L $address)
response=$(curl -k --write-out %{http_code} --silent --output /dev/null $address)
(( count++ ))
if [ $count == 10 ]; then
break
fi
done
echo $address
Jump to Line
Something went wrong with that request. Please try again.