From ca9628342ad55b37d86508987975f312204ace9e Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Thu, 18 Aug 2022 10:22:58 -0300 Subject: [PATCH] refactor: check existing tags for relup Co-authored-by: Zaiming (Stone) Shi --- build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build b/build index e2c68bce1..c24bed785 100755 --- a/build +++ b/build @@ -190,7 +190,8 @@ make_zip() { esac ## one can only upgrade to 4.5.X from 4.4.8 or later, when that's ## released. Until that's released, there's no relup. - if [[ -z "$(ls -A _upgrade_base 2>/dev/null || true)" && "${PKG_VSN}" == 4.5.0* ]]; then + v44_bases="$(git tag -l "*4.4*" | grep -c -E '4\.4\.([8-9]|1[0-9])' || true)" + if [[ "${v44_bases}" -eq 0 ]]; then has_relup='no' fi if [ "$has_relup" = 'yes' ]; then