From a9d5b4e26471dfba533d35babfb08c59e70c4d79 Mon Sep 17 00:00:00 2001 From: redxef Date: Mon, 29 Aug 2022 22:46:09 +0200 Subject: [PATCH] Fix additional_tags logic error. --- src/out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/out b/src/out index 563425c..58bd825 100755 --- a/src/out +++ b/src/out @@ -14,7 +14,7 @@ cd - 1>&2 2>/dev/null crane push "$oci_dir" "$REPOSITORY:$TAG" --image-refs="$image_refs_file" additional_tags="$(jq -r .params.additional_tags < "$INPUT_FILE")" if [ -n "$additional_tags" ]; then - if [ -r "$1/$additional_tags" ]; then + if ! [ -r "$1/$additional_tags" ]; then fail "cannot open file $1/$additional_tags" fi tr '[:space:]' '\n' < "$1/$additional_tags" | grep -v '^$' | while read -r tag; do