From e6d63a99c93ca533a409b8fe1b6e1808a708f7ff Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 13 Nov 2023 19:03:13 +0100 Subject: [PATCH] Update pvekclean.sh v2.0.2 --- pvekclean.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pvekclean.sh b/pvekclean.sh index c8a8606..9d5fd85 100644 --- a/pvekclean.sh +++ b/pvekclean.sh @@ -421,14 +421,18 @@ pve_kernel_clean() { /usr/bin/apt purge -y proxmox-headers-${kernel%-pve} > /dev/null 2>&1 fi sleep 1 - printf "DONE!\n" + printf "${bold}${green}DONE!${reset}\n" done printf "${bold}[*]${reset} Updating GRUB..." # Update grub after kernels are removed, suppress output if [ "$dry_run" != "true" ]; then /usr/sbin/update-grub > /dev/null 2>&1 fi - printf "DONE!\n" + printf "${bold}${green}DONE!${reset}\n" + # Get information about the /boot folder + boot_info=($(echo $(df -Ph | grep /boot | tail -1) | sed 's/%//g')) + # Show information about the /boot + printf "${bold}[-]${reset} ${bold}Boot Disk:${reset} ${boot_info[4]}%% full [${boot_info[2]}/${boot_info[1]} used, ${boot_info[3]} free] \n" # Script finished successfully printf "${bold}[-]${reset} Have a nice $(timeGreeting) ⎦˚◡˚⎣\n" # User wishes to not remove the kernels above, exit