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:
10
github-copy/ghcat
Normal file
10
github-copy/ghcat
Normal 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
|
||||
Reference in New Issue
Block a user