From 2661b81dc74a3f1142a29a0521cb91971b6f505e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de> Date: Thu, 5 Sep 2024 13:35:56 +0200 Subject: [PATCH] fix: only exit on errors, not always --- backup_am_github_repos_and_issues.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backup_am_github_repos_and_issues.sh b/backup_am_github_repos_and_issues.sh index 4891a98..87b8c26 100644 --- a/backup_am_github_repos_and_issues.sh +++ b/backup_am_github_repos_and_issues.sh @@ -19,9 +19,7 @@ done print_fails(){ # print fails (if any) and exit -if [[ ${#fails[@]} -eq 0 ]]; then - exit 0 # no error during execution -else +if [[ ${#fails[@]} -ne 0 ]]; then echo "################" echo "FAILED COMMANDS:" for fail in "${fails[@]}"; do @@ -107,3 +105,5 @@ done popd || exit 1 print_fails + +exit 0; -- GitLab