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