-
Notifications
You must be signed in to change notification settings - Fork 6
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
'df' prints number with 'K' suffix making field non-numeric #1
Comments
I don't see this on my CentOS 7 system. Can you post exactly what the |
Here's some information, empty lines added for readability, and a hostname redacted. This is a CentOS 7 server instance at upcloud.com. Also
|
By the way, |
In the following code at around line 634
on some systems (e.g., newer CentOS 7) the
df
command may print a filesystem size with a 'K' suffix. On the next line, the 'if [ "$root_fs_avail" -lt ...] ...' then reports an error because '-lt' expects a numeric argument.An easy fix would be to pipe df's output through
sed -e 's/[^0-9]//g'
thus deletng all non-numeric characters.The text was updated successfully, but these errors were encountered: