ungleich-learning-circle/add-remotes.sh

10 lines
263 B
Bash
Raw Normal View History

2020-07-22 14:46:14 +00:00
#!/bin/sh
# Nico Schottelius, 2020-07-22
grep '^* \[' README.md | sed 's/.*\[\(.*\)].*: \(git@.*\)/\1 \2/' | (
while read name repo; do
name_small=$(echo $name | tr 'A-Z' 'a-z')
git remote add $name_small $repo
done
)