1
0
mirror of https://github.com/rlister/dockerfiles.git synced 2026-01-21 20:35:26 +00:00

rename script and add ghcat

This commit is contained in:
Richard Lister
2015-02-09 14:14:23 -05:00
parent b37f5747b0
commit e581ed66c8
3 changed files with 15 additions and 3 deletions

10
github-copy/ghcat Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
## simply cat all remote files to stdout
for src in $*
do
/usr/bin/curl -sL \
-H "Authorization: token $TOKEN" \
-H 'Accept: application/vnd.github.v3.raw' \
"https://api.github.com/repos/${REPO}/contents/${src}"
done