git_rebase_all_repos.sh: init

This commit is contained in:
Oliver Schraml 2017-08-25 13:42:50 +02:00 committed by suchademon
parent e95fefac10
commit 185ad272c9
Signed by: oliver.schraml
GPG Key ID: A55864B79D0D0228
1 changed files with 15 additions and 0 deletions

15
git_rebase_all_repos.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
for f in $(ls | grep -v "\./")
do
git -C "${f}" branch -vv >/dev/null 2>&1
if [ ${?} -eq 0 ]
then
git -C "${f}" pull --rebase >/dev/null 2>&1
if [ $? -eq 0 ]
then
echo "${f}: update done"
else
echo "${f}: update error"
fi
fi
done