Parcourir la source

Use sudo to remove jammy repo file

bryan il y a 3 jours
Parent
commit
0379c8d4f0
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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