docs: translate fullupgrade script messages to English
This commit is contained in:
+13
-13
@@ -5,20 +5,20 @@ show_help() {
|
|||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
Usage: fullupgrade
|
Usage: fullupgrade
|
||||||
|
|
||||||
Met à jour Arch Linux et effectue un nettoyage:
|
Updates Arch Linux and performs cleanup:
|
||||||
- mise à jour de archlinux-keyring
|
- updates archlinux-keyring
|
||||||
- synchronisation complète du système
|
- performs a full system synchronization
|
||||||
- suppression des paquets orphelins
|
- removes orphaned packages
|
||||||
- nettoyage du cache pacman
|
- 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
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
require_root() {
|
require_root() {
|
||||||
if [ "${EUID:-$(id -u)}" -ne 0 ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -31,7 +31,7 @@ cleanup_orphans() {
|
|||||||
if [ "${#orphans[@]}" -gt 0 ]; then
|
if [ "${#orphans[@]}" -gt 0 ]; then
|
||||||
pacman -Rns --noconfirm "${orphans[@]}"
|
pacman -Rns --noconfirm "${orphans[@]}"
|
||||||
else
|
else
|
||||||
echo "Aucun paquet orphelin à supprimer."
|
echo "No orphaned packages to remove."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,19 +43,19 @@ main() {
|
|||||||
|
|
||||||
require_root
|
require_root
|
||||||
|
|
||||||
echo "Mise à jour de archlinux-keyring..."
|
echo "Updating archlinux-keyring..."
|
||||||
pacman -Sy --noconfirm archlinux-keyring
|
pacman -Sy --noconfirm archlinux-keyring
|
||||||
|
|
||||||
echo "Mise à jour complète du système..."
|
echo "Performing full system update..."
|
||||||
pacman -Syu --noconfirm
|
pacman -Syu --noconfirm
|
||||||
|
|
||||||
echo "Recherche des paquets orphelins..."
|
echo "Searching for orphaned packages..."
|
||||||
cleanup_orphans
|
cleanup_orphans
|
||||||
|
|
||||||
echo "Nettoyage du cache pacman..."
|
echo "Cleaning pacman cache..."
|
||||||
pacman -Sc --noconfirm
|
pacman -Sc --noconfirm
|
||||||
|
|
||||||
echo "Mise à jour terminée avec succès."
|
echo "Update completed successfully."
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user