Explorar o código

If corrupted deb is removed, reacquire

bryan hai 5 horas
pai
achega
ea473eb58c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      installJRMC

+ 2 - 2
installJRMC

@@ -621,8 +621,8 @@ acquire_deb() {
       execute rm "$MC_DEB"
     else
       echo "Using existing DEB: $MC_DEB"
+      return 0
     fi
-    return 0
   fi
 
   # Define the repositories to check
@@ -640,7 +640,7 @@ acquire_deb() {
       break
     fi
     err "DEB file not found/downloaded"
-    exit 1
+    return 1
   done
 
   [[ -f $MC_DEB ]]