From e029c3fb67d9e189d0670fc6539e42a5e564c7fe Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Tue, 7 Jan 2025 12:03:56 +0800 Subject: [PATCH] Small fixes Signed-off-by: Chenxiong Qi --- hack/validate-migration.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hack/validate-migration.sh b/hack/validate-migration.sh index 285d002059..889fc28089 100755 --- a/hack/validate-migration.sh +++ b/hack/validate-migration.sh @@ -38,7 +38,6 @@ declare -r DEFAULT_BRANCH : "${IN_CLUSTER:=""}" declare -r IN_CLUSTER -# prepare_pipelines() { local -a pl_names_in_config local pushed_pipelines @@ -55,7 +54,7 @@ prepare_pipelines() { tkn bundle list "$pl_bundle" pipeline "$pl_name" -o yaml \ >"${WORK_DIR}/pipelines/pushed/${pl_name}.yaml" done <<<"$pushed_pipelines" - + mkdir -p "${WORK_DIR}/pipelines/local" kubectl kustomize --output "${WORK_DIR}/pipelines/local" pipelines/ @@ -84,8 +83,8 @@ prepare_pipelines() { {\"name\": \"kind\", \"value\": \"task\"} ] }" - task_selector="((.spec.tasks[], .spec.finally[]) | select(.name == \"${task_name}\")" - yq -i "${task_selector} | .taskRef) |= ${fake_bundle_ref}" "$file_path" + task_selector="(.spec.tasks[], .spec.finally[]) | select(.name == \"${task_name}\")" + yq -i "(${task_selector} | .taskRef) |= ${fake_bundle_ref}" "$file_path" done fi done