mirror of
https://github.com/captn3m0/Scripts.git
synced 2024-09-27 22:22:53 +00:00
13 lines
341 B
Bash
13 lines
341 B
Bash
|
#!/bin/bash
|
||
|
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
||
|
set -euo pipefail
|
||
|
|
||
|
curl -u "$GITHUB_USER:$GITHUB_TOKEN" https://api.github.com/teams/847073/members | jq '.[] | .login' -r > list.txt
|
||
|
|
||
|
rm authorized_keys || true
|
||
|
while read USERID
|
||
|
do
|
||
|
curl https://github.com/$USERID.keys >> authorized_keys
|
||
|
done < list.txt
|
||
|
|
||
|
rm list.txt
|