mirror of
https://github.com/captn3m0/Scripts.git
synced 2024-09-28 16:22:49 +00:00
13 lines
341 B
Bash
Executable File
13 lines
341 B
Bash
Executable File
#!/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 |