From d71baf8b30a657fad99db2f380abdc9b60a16631 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Mon, 2 Aug 2021 09:48:29 +0300 Subject: [PATCH] Use return from function instead of full exit. (#982) Signed-off-by: Oleksandr Andriienko --- olm/olm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/olm/olm.sh b/olm/olm.sh index 9a25dfe7a..30a9cdc7e 100755 --- a/olm/olm.sh +++ b/olm/olm.sh @@ -200,7 +200,7 @@ buildCatalogImage() { if [[ "${output}" == *"already exists, Bundle already added that provides package and csv"* ]] && [[ "${forceBuildAndPush}" == "true" ]]; then echo "[INFO] Ignore error 'Bundle already added'" # Catalog bundle image contains bundle reference, continue without unnecessary push operation - exit 0 + return else echo "[INFO] ${exitCode}" if [ "${exitCode}" != 0 ]; then