diff --git a/build/upgrade_annotations.sh b/build/upgrade_annotations.sh index 53ff04814..f04c3594c 100755 --- a/build/upgrade_annotations.sh +++ b/build/upgrade_annotations.sh @@ -22,13 +22,13 @@ update_version() { } get_changelog() { - CHANGELOG="$(curl https://raw.githubusercontent.com/box/box-annotations/master/CHANGELOG.md | awk '/\#/{f=1} f{print; if (/\ /dev/null | tail -n1) != "" ]] ; then + echo "----------------------------------------------------" + echo "Your branch is dirty!" + echo "----------------------------------------------------" + exit 1 + fi + + # Get latest commited code and tags + reset_to_master || return 1 + # Bump the version number update_version || return 1