diff --git a/scripts/check_tag_info.sh b/scripts/check_tag_info.sh index f13032bd..28a5c8b9 100755 --- a/scripts/check_tag_info.sh +++ b/scripts/check_tag_info.sh @@ -15,13 +15,13 @@ IMAGE_TAG=$(cat sec-scanners-config.yaml | grep "${SEC_SCAN_TO_CHECK}" | cut -d # Get rc-tag RC_TAG_TO_CHECK="${3:-rc-tag}" -RC_TAG=$(cat sec-scanners-config.yaml | grep "${RC_TAG_TO_CHECK}" | cut -d : -f 2) +RC_TAG=$(cat sec-scanners-config.yaml | grep "${RC_TAG_TO_CHECK}" | cut -d : -f 2 | xargs) # Check IMAGE_TAG and required image tag if [[ "$IMAGE_TAG" != "$DESIRED_TAG" ]] || [[ "$RC_TAG" != "$DESIRED_TAG" ]]; then # ERROR: Tag issue echo "Tags are not correct: - - wanted $DESIRED_TAG + - wanted: $DESIRED_TAG - security-scanner image tag: $IMAGE_TAG - rc-tag: $RC_TAG" exit 1