diff --git a/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml b/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml index 3d0f58f0bd..3b7d973eab 100644 --- a/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml +++ b/task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml @@ -122,7 +122,7 @@ spec: echo "Extracting artifact_type" ARTIFACT_TYPE=$(cat "$(pwd)/source/$OCI_COPY_FILE" | yq '.artifact_type') - REPO=$(echo ${IMAGE} | awk -F ':' '{print $1}') + REPO=${IMAGE%:*} echo "Found that ${REPO} is the repository for ${IMAGE}" cat >artifact-manifest.json <artifact-manifest.json <