Merge pull request #851 from infosiftr/deprecated-stub

Add repo's deprecated notice to its stub readme too (if applicable)
This commit is contained in:
yosifkit 2017-03-08 09:38:57 -08:00 committed by GitHub
commit 8a1986615d
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,13 @@ fi
canonicalRepo="$(curl -fsSLI -o /dev/null -w '%{url_effective}\n' "$canonicalRepo")" # follow redirects (http://stackoverflow.com/a/3077316/433558)
travisRepo="${canonicalRepo#*://github.com/}"
if [ -f "$repo/deprecated.md" ]; then
echo '# DEPRECATED'
echo
cat "$repo/deprecated.md"
echo
fi
cat <<EOREADME
# About this Repo