baz/scripts/git.sh
Ari Archer f4ea9444ea
6.0.0-pre : improve wording, update only on version change, add baz_setup.sh
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2023-02-13 00:20:57 +02:00

18 lines
318 B
Bash
Executable file

#!/usr/bin/env sh
set -e
main() {
echo 'did you change the version ??'
printf 'press enter to mean yes'
read -r _
echo 'okay ... i will sleep for couple of seconds just in case'
sleep 4s
git add -A
git commit -sa
git push -u origin "$(git rev-parse --abbrev-ref HEAD)"
}
main "$@"