From 7cc337778157c397b583dd8e466a4a6581f9fd50 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Mon, 30 Oct 2023 16:57:47 +0100 Subject: [PATCH] Don't use return for breaking loops This is only available inside functions. --- scripts/aur.sh | 2 +- scripts/update.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/aur.sh b/scripts/aur.sh index be1283b..448733b 100644 --- a/scripts/aur.sh +++ b/scripts/aur.sh @@ -49,7 +49,7 @@ then for i in {1..3} do info 'Pushing to the AUR' - git push origin "${aur_branch}" && return + git push origin "${aur_branch}" && exit 0 info "Push attempt $i failed, retrying..." done diff --git a/scripts/update.sh b/scripts/update.sh index e83b075..639c733 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -50,7 +50,7 @@ then for i in {1..3} do info 'Pushing to main' - git push origin main && return + git push origin main && exit 0 info "Push attempt $i failed, retrying..." done