diff options
author | Razvan Becheriu <razvan@isc.org> | 2020-12-11 19:50:25 +0100 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2020-12-11 21:40:03 +0100 |
commit | 9eff52161c48f58c7f499b472b306c93970cac98 (patch) | |
tree | 2a5a54c761399547a460a3dcf6db88fbee3434fc | |
parent | [#1605] bump lib versions for 1.9.3 (diff) | |
download | kea-9eff52161c48f58c7f499b472b306c93970cac98.tar.xz kea-9eff52161c48f58c7f499b472b306c93970cac98.zip |
[#1605] fixed bump lib versions script
-rwxr-xr-x | tools/bump-lib-versions.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/bump-lib-versions.sh b/tools/bump-lib-versions.sh index 10fcfb84d5..d599b1e061 100755 --- a/tools/bump-lib-versions.sh +++ b/tools/bump-lib-versions.sh @@ -68,8 +68,8 @@ test -z "${old_release_tag+x}" && error '$old_release_tag is mandatory' test -z "${new_release_tag+x}" && error '$new_release_tag is mandatory' is_stable_release() { - local version=$(printf '%s' "${1}" | cut -d . -f2) - if test $((version % 2)) -eq 0; then + version_number=$(printf '%s' "${1}" | cut -d . -f2) + if test $((version_number % 2)) -eq 0; then return 0 else return 1 @@ -77,7 +77,7 @@ is_stable_release() { } find_latest_stable_release_tag() { - local tag_pattern=${1} + tag_pattern=${1} for version in $(git tag | grep -F "${tag_pattern}" | tac); do if is_stable_release "${version}"; then printf '%s' "${version}" |