diff --git a/fullupgrade b/fullupgrade index ec43b34..7bdbdb9 100755 --- a/fullupgrade +++ b/fullupgrade @@ -5,20 +5,20 @@ show_help() { cat <<'EOF' Usage: fullupgrade -Met à jour Arch Linux et effectue un nettoyage: - - mise à jour de archlinux-keyring - - synchronisation complète du système - - suppression des paquets orphelins - - nettoyage du cache pacman +Updates Arch Linux and performs cleanup: + - updates archlinux-keyring + - performs a full system synchronization + - removes orphaned packages + - cleans the pacman cache -Attention: ce script modifie le système et s'exécute sans confirmation. +Warning: this script modifies the system and runs without confirmation. EOF } require_root() { if [ "${EUID:-$(id -u)}" -ne 0 ]; then - echo "Erreur: ce script doit être exécuté en root." >&2 + echo "Error: this script must be run as root." >&2 exit 1 fi } @@ -31,7 +31,7 @@ cleanup_orphans() { if [ "${#orphans[@]}" -gt 0 ]; then pacman -Rns --noconfirm "${orphans[@]}" else - echo "Aucun paquet orphelin à supprimer." + echo "No orphaned packages to remove." fi } @@ -43,19 +43,19 @@ main() { require_root - echo "Mise à jour de archlinux-keyring..." + echo "Updating archlinux-keyring..." pacman -Sy --noconfirm archlinux-keyring - echo "Mise à jour complète du système..." + echo "Performing full system update..." pacman -Syu --noconfirm - echo "Recherche des paquets orphelins..." + echo "Searching for orphaned packages..." cleanup_orphans - echo "Nettoyage du cache pacman..." + echo "Cleaning pacman cache..." pacman -Sc --noconfirm - echo "Mise à jour terminée avec succès." + echo "Update completed successfully." } main "$@"