Add script to add remotes from README
This commit is contained in:
parent
d0f2c8040a
commit
bff795f6f0
1 changed files with 9 additions and 0 deletions
9
add-remotes.sh
Executable file
9
add-remotes.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/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
|
||||||
|
)
|
Loading…
Reference in a new issue