From 021303a2af40fc648975cdfc3e2393178ab70add Mon Sep 17 00:00:00 2001 From: Jack Danger Date: Wed, 10 Jan 2018 15:07:40 -0800 Subject: [PATCH] simplifying committing of changed versioned files --- scripts/bump_version | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/bump_version b/scripts/bump_version index 5315f26f0..d1af3a84b 100755 --- a/scripts/bump_version +++ b/scripts/bump_version @@ -1,6 +1,8 @@ #!/bin/bash main() { + set -euo pipefail # Bash safemode + local version=$1 if [[ -z "${version}" ]]; then echo "USAGE: $0 1.3.2" @@ -15,7 +17,7 @@ main() { git checkout -b version-${version} # Commit the new version - git commit setup.py moto/__init__.py -m "bumping to version ${version}" + git commit -a -m "bumping to version ${version}" # Commit an updated IMPLEMENTATION_COVERAGE.md make implementation_coverage || true # Open a PR