From 9095458f98775a11ab1fd0952abd485ddad60779 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Tue, 4 May 2021 14:34:16 +0100 Subject: [PATCH] [tekton-publish-catalog] Fix syntax of find command The syntax of the find command was not correct, and the error was not caught by CI because of the missing "set -o pipefail". Signed-off-by: Andrea Frittoli --- task/tekton-catalog-publish/0.1/tekton-catalog-publish.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/task/tekton-catalog-publish/0.1/tekton-catalog-publish.yaml b/task/tekton-catalog-publish/0.1/tekton-catalog-publish.yaml index 4e601431..e4915010 100644 --- a/task/tekton-catalog-publish/0.1/tekton-catalog-publish.yaml +++ b/task/tekton-catalog-publish/0.1/tekton-catalog-publish.yaml @@ -62,10 +62,10 @@ spec: value: $(params.TAG) script: | #!/usr/bin/env sh - set -e + set -e -o pipefail TARGET="${REGISTRY}" [ "${REGISTRY_PATH}" != "" ] && TARGET="${TARGET}/${REGISTRY_PATH}" - find task -type f -mindepth 3 -maxdepth 3 -name '*.yaml' -o '*.yml'| while read -r task_version_dir; do + find task -type f -mindepth 3 -maxdepth 3 -name '*.yaml' -o -name '*.yml'| while read -r task_version_dir; do FOLDER=$(dirname "$task_version_dir") VERSION=$(basename "$FOLDER") TASK=$(basename "$(dirname "$FOLDER")") @@ -73,4 +73,4 @@ spec: [ "${TAG}" != "" ] && \ tkn bundle push "${TARGET}/${TASK}:${TAG}" -f "$task_version_dir" sleep 0.1 - done \ No newline at end of file + done