Use return from function instead of full exit. (#982)

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
pull/983/head
Oleksandr Andriienko 2021-08-02 09:48:29 +03:00 committed by GitHub
parent d935e6f9dc
commit d71baf8b30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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