From 6f8c093e2e2436a80659bfed2c789be8985acb0f Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 11 Apr 2025 18:04:08 -0400 Subject: [PATCH] Cycle through test and beta repos --- installJRMC | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/installJRMC b/installJRMC index c4e42a6..6adc3bd 100755 --- a/installJRMC +++ b/installJRMC @@ -710,17 +710,18 @@ acquire_deb() { fi # Loop through the repositories and attempt to download + local found=0 for repo in "${repos[@]}"; do echo "Checking $repo for DEB package" if download "$repo" "$MC_DEB"; then echo "Found" + found=1 break fi - err "DEB file not found/downloaded" - return 1 done - [[ -f $MC_DEB ]] + # Return if the download was successful + ((found)) && [[ -f $MC_DEB ]] } # @description Creates a SPEC file and builds the RPM from the source DEB using rpmbuild