2023-11-07 20:50:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
## If user is not running this in the root of the project dir
|
|
|
|
if [[ ! -d utils ]]; then
|
|
|
|
## Change directory to project dir
|
2023-11-24 23:52:36 +00:00
|
|
|
cd `dirname $0`
|
2023-11-07 20:50:48 +00:00
|
|
|
cd ..
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
MESSAGE="${1:?"Message not provided"}"
|
|
|
|
|
|
|
|
git submodule foreach "git add .; git commit -m '$MESSAGE'; git push"
|
|
|
|
|
|
|
|
git add .
|
|
|
|
git commit -m "$MESSAGE"
|
|
|
|
git push origin master
|
|
|
|
git push gitserver master
|