Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Commit

Permalink
Add script to fetch and merge GitHub user token list
Browse files Browse the repository at this point in the history
  • Loading branch information
espadrine committed Nov 10, 2017
1 parent 230b2b8 commit 445c3b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions get-github-tokens.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
ips=$(< "$DIR"/../private/secret.json jq -r .shieldsIps[])
for ip in $ips; do
scp root@"$ip":/home/m/shields/private/github-user-tokens.json "$ip"
done

echo "$ips" | xargs jq -s 'add|unique'

for ip in $ips; do
rm "$ip"
done

0 comments on commit 445c3b0

Please sign in to comment.