@@ -254,7 +254,7 @@ main() {
254
254
255
255
# Upload artifacts.
256
256
if [ " ${DRY_RUN} " == " true" ] || [ " ${NO_UPLOAD} " == 1 ]; then
257
- log_callout " Skipping artifact upload to gs://etcd. --no-upload flat is set."
257
+ log_callout " Skipping artifact upload to gs://etcd. --no-upload flag is set."
258
258
else
259
259
read -p " Upload etcd ${RELEASE_VERSION} release artifacts to gs://etcd [y/N]? " -r confirm
260
260
[[ " ${confirm,,} " == " y" ]] || exit 1
@@ -266,7 +266,7 @@ main() {
266
266
267
267
# Push images.
268
268
if [ " ${DRY_RUN} " == " true" ] || [ " ${NO_DOCKER_PUSH} " == 1 ]; then
269
- log_callout " Skipping docker push. --no-docker-push flat is set."
269
+ log_callout " Skipping docker push. --no-docker-push flag is set."
270
270
else
271
271
read -p " Publish etcd ${RELEASE_VERSION} docker images to quay.io [y/N]? " -r confirm
272
272
[[ " ${confirm,,} " == " y" ]] || exit 1
@@ -364,7 +364,8 @@ main() {
364
364
release_notes_temp_file=$( mktemp)
365
365
366
366
local release_version=${RELEASE_VERSION# v} # Remove the v prefix from the release version (i.e., v3.6.1 -> 3.6.1)
367
- local release_version_major_minor=${release_version% .* } # Remove the patch from the version (i.e., 3.6)
367
+ local release_version_major_minor
368
+ release_version_major_minor=$( echo " ${release_version} " | cut -d. -f1-2) # Remove the patch from the version (i.e., 3.6)
368
369
local release_version_major=${release_version_major_minor% .* } # Extract the major (i.e., 3)
369
370
local release_version_minor=${release_version_major_minor/* ./ } # Extract the minor (i.e., 6)
370
371
0 commit comments