|
|
|
@ -20,8 +20,13 @@ read -p "Enter your commit message []: " -e commitmessage
|
|
|
|
|
|
|
|
|
|
git submodule foreach "git commit -a -m \"$commitmessage\" || true" |
|
|
|
|
git submodule foreach "sed -i \"s/system@scm\.trinitydesktop\.org/$gituser@scm\.trinitydesktop\.org/g\" .git/config" |
|
|
|
|
git submodule foreach "git push origin master || true" |
|
|
|
|
git submodule foreach "git pull && git push origin master" |
|
|
|
|
RETCODE=$? |
|
|
|
|
if [[ $RETCODE != 0 ]]; then |
|
|
|
|
echo "Something went wrong" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
git commit -a -m "$commitmessage" || true |
|
|
|
|
sed -i "s/system@scm\.trinitydesktop\.org/$gituser@scm\.trinitydesktop\.org/g" .git/config |
|
|
|
|
git push origin master || true |
|
|
|
|
git pull && git push origin master || true |
|
|
|
|