From bff795f6f032464a09d142217c56ca7f4662e212 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 22 Jul 2020 16:46:14 +0200 Subject: [PATCH] Add script to add remotes from README --- add-remotes.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 add-remotes.sh diff --git a/add-remotes.sh b/add-remotes.sh new file mode 100755 index 0000000..e9d870d --- /dev/null +++ b/add-remotes.sh @@ -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 + )