Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some information not shown #15

Open
onlineapps-cloud opened this issue Aug 21, 2024 · 1 comment
Open

Some information not shown #15

onlineapps-cloud opened this issue Aug 21, 2024 · 1 comment

Comments

@onlineapps-cloud
Copy link

image

@beckerr-rzht
Copy link

This is the case if `/boot does not exist. Here is a fix:

--- pvekclean.sh        2024-09-01 09:39:05.370885863 +0200
+++ /usr/local/sbin/pvekclean.sh        2024-09-01 09:34:39.852809024 +0200
@@ -142,6 +142,7 @@
        printf " ${bold}OS:${reset} $(cat /etc/os-release | grep "PRETTY_NAME" | sed 's/PRETTY_NAME=//g' | sed 's/["]//g' | awk '{print $0}')\n"
        # Get information about the /boot folder
        boot_info=($(echo $(df -Ph | grep /boot | tail -1) | sed 's/%//g'))
+       [ ${#boot_info[*]} -gt 0 ] || boot_info=($(echo $(df -Ph / | tail -1) | sed 's/%//g'))
        # Show information about the /boot
        printf " ${bold}Boot Disk:${reset} ${boot_info[4]}%% full [${boot_info[2]}/${boot_info[1]} used, ${boot_info[3]} free] \n"
        # Show current kernel in use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants