From 50ee0391750e8969a14ad6ac2aef87ee60fa4d47 Mon Sep 17 00:00:00 2001 From: redxef Date: Mon, 29 Aug 2022 22:12:03 +0200 Subject: [PATCH] Fix syntax of out command. --- src/out | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/out b/src/out index 081b965..77f83e7 100755 --- a/src/out +++ b/src/out @@ -14,11 +14,8 @@ cd - 1>&2 2>/dev/null crane push "$oci_dir" "$REPOSITORY:$TAG" --image-refs="$image_refs_file" additional_tags="$(jq .params.additional_tags < "$INPUT_FILE")" if [ -n "$additional_tags" ]; then - if ! [ -e "$additional_tags" ]; then - fail "additional_tags specified, but doesn't exist" - fi - tr ' \n\t' '\n\n\n' | grep -v '^$' | while read -r tag; do - crane tag "$REPOSITORY:@$(cat "$image_refs_file)" "$tag" + tr '[:space:]' '\n' < "$1/$additional_tags" | grep -v '^$' | while read -r tag; do + crane tag "$REPOSITORY:@$(cat "$image_refs_file")" "$tag" done fi