From 24d7e89e1dbc4da6936b48a7377f0cb615e2f984 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Thu, 24 Oct 2024 17:07:04 +0530 Subject: [PATCH] Update DEST_DIR_SUFFIX in case of pr Recently on crc side[0] we have enabled the regex to capture bundle info and as part of this regex we are capturing the custom bundle which is random generated number like `crc_okd_vfkit_4.16.7_amd64_2342465234654.crcbundle` but for bundles generated by the pr have suffix `.pr` which means again adjust the regex. We can still identify the bundle with `_` and this way we don't need to update the regex. - https://github.com/crc-org/crc/pull/4343 --- createdisk-library.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/createdisk-library.sh b/createdisk-library.sh index 282b6e1c..1d25ca45 100755 --- a/createdisk-library.sh +++ b/createdisk-library.sh @@ -6,7 +6,7 @@ function get_dest_dir_suffix { local version=$1 DEST_DIR_SUFFIX="${version}_${yq_ARCH}" if [ -n "${PULL_NUMBER-}" ]; then - DEST_DIR_SUFFIX="$DEST_DIR_SUFFIX.pr${PULL_NUMBER}" + DEST_DIR_SUFFIX="${DEST_DIR_SUFFIX}_${PULL_NUMBER}" fi }