You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function filesystem_full {
if [[ -n "$1" && -n "$2" ]]; then
local PERCENTAGE_USED=`df |grep "${1}$"|awk '{print $5}'|sed 's/%//'`
if [[ -n $PERCENTAGE_USED && $PERCENTAGE_USED -ge $2 ]]; then
true
else
false
fi
else
false
fi
}
The text was updated successfully, but these errors were encountered:
filesystem_full always returns false!
Fix:
The text was updated successfully, but these errors were encountered: