Created
January 31, 2021 19:08
-
-
Save kaar/dcdde7701e9e94013c884a052463f83a to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
ACCESS_TOKEN=$(<access-token) | |
HEADER_AUTH="Authorization: token ${ACCESS_TOKEN}" | |
[[ ! -z "$1" ]] \ | |
&& curl --silent -H "$HEADER_AUTH" https://raw.githubusercontent.com/$1/master/README.md &> /dev/stdout \ | |
|| echo "Missing repository $1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment