Explorar o código

Use sudo to remove jammy repo file

bryan hai 2 días
pai
achega
0379c8d4f0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      installJRMC

+ 2 - 2
installJRMC

@@ -1041,13 +1041,13 @@ install_mc_deb() {
   --reinstall \
   "$MC_DEB"; then
     err "Local MC DEB installation failed"
-    ((remove_jammy)) && execute rm -f "$repo_file"
+    ((remove_jammy)) && execute sudo rm -f "$repo_file"
     if ask_ok "Remove source DEB and retry"; then
       execute rm -f "$MC_DEB"
       exec "$SCRIPT_PATH" "$@" "--no-update"
     fi
   fi
-  ((remove_jammy)) && execute rm -f "$repo_file"
+  ((remove_jammy)) && execute sudo rm -f "$repo_file"
 }
 
 # @description Installs MC via RPM package