diff --git a/scripts/aur.sh b/scripts/aur.sh index 8983d02..be1283b 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}" && break + git push origin "${aur_branch}" && return info "Push attempt $i failed, retrying..." done diff --git a/scripts/update.sh b/scripts/update.sh index 7606489..704445b 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -45,7 +45,7 @@ then for i in {1..3} do info 'Pushing to main' - git push origin main && break + git push origin main && return info "Push attempt $i failed, retrying..." done