File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -5,22 +5,19 @@ set -o errexit
5
5
set -o pipefail
6
6
set -x
7
7
8
- check_semver_suffix () {
8
+ check_semver_no_suffix () {
9
9
local version=$1
10
10
11
11
# Check if the version is not empty
12
12
if [[ -z " $version " ]]; then
13
- echo " false"
14
- return 1
13
+ return 0
15
14
fi
16
15
17
16
# Check if the version string contains a numeric suffix of the form -xx
18
17
if [[ $version =~ -[0-9]+$ ]]; then
19
- echo " true"
20
- return 0
21
- else
22
- echo " false"
23
18
return 1
19
+ else
20
+ return 0
24
21
fi
25
22
}
26
23
@@ -121,8 +118,7 @@ pullspec_release_lvms="registry.redhat.io/lvms4/lvms-operator-bundle:${release_l
121
118
# the latest lvms release candidate replicated from CPaaS into quay
122
119
pullspec_release_lvms_fallback=" quay.io/lvms_dev/lvms4-lvms-operator-bundle:${release_lvms} "
123
120
124
- lvms_is_candidate_build=$( check_semver_suffix " ${release_lvms} " )
125
- if [ " $lvms_is_candidate_build " == " false" ]; then
121
+ if check_semver_no_suffix " ${release_lvms} " ; then
126
122
./scripts/auto-rebase/rebase-lvms.sh to " ${pullspec_release_lvms} "
127
123
else
128
124
./scripts/auto-rebase/rebase-lvms.sh to " ${pullspec_release_lvms_fallback} "
You can’t perform that action at this time.
0 commit comments