1
0
mirror of https://github.com/rlister/dockerfiles.git synced 2025-12-12 17:26:15 +00:00
Files
rlister-dockerfiles/github-copy/ghcat
2015-02-09 14:14:23 -05:00

11 lines
243 B
Bash

#!/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