Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:chrismore/Domain-Name-Status-Checker
- Loading branch information
Showing
6 changed files
with
93 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,24 @@ | ||
#!/bin/bash | ||
|
||
address=$1 | ||
input=$2 | ||
output=$3 | ||
output=$2 | ||
|
||
domain=`echo $address | sed -r "s/^(.+\/\/)([^/]+)(.*)/\2/"` | ||
found=`grep -i $domain $input | wc -l | sed -r "s/ //g"` | ||
domain=`echo $address | sed -E "s/^(.+\/\/)([^/]+)(.*)/\2/"` | ||
title=`curl -s $address | grep -i "title>" | sed -E "s/^[^<]+//g" | sed -E "s/<title>//g" | sed -E "s/<\/title>//g" | sed -E "s/\n|\t//g"` | ||
found=`grep -i $domain current-websites.txt | wc -l | sed -E "s/ //g"` | ||
|
||
if [ "$found" == "0" ]; then | ||
|
||
title=`curl -s $address | grep -i "title>" | sed ':a;N;$!ba;s/\n//g' | sed -r "s/^[^<]+//g" | sed -r "s/<(title|TITLE)>//g" | sed -r "s/<\/(title|TITLE)>//g" | sed -r "s/([^<]+)(.*)/\1/g" | sed 's/[^a-z0-9\-\: ]*$//g'` | ||
|
||
if [ "$title" != "Index of " ] && [ "$title" != "" ]; then | ||
|
||
echo "== $title == | ||
* Prod URL: $address | ||
* Stage URL: | ||
* Code Repo: | ||
* L10N Repo: | ||
* Code: | ||
* Licensing: | ||
* Product Owner: | ||
* Dev Team: | ||
* QA Lead: | ||
* Team Email: | ||
* Last reviewed: | ||
" >> $output | ||
|
||
fi | ||
|
||
fi | ||
echo "== [[Websites/Template|$title]] == | ||
* Prod URL: $address | ||
* Stage URL: http://stage.example.com/ | ||
* Code Repo: http://www.code-repository-url.com/ | ||
* L10N Repo: http://www.l10n-repository-url.com/ | ||
* Code: Language / Framework | ||
* Product Owner: Group; Person | ||
* Dev Team: Group; Person | ||
* QA Lead: Person | ||
* Team Email: team-email@example.com | ||
* Last reviewed: Person on mm/dd/yyyy | ||
" >> $output | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters