Commit 7bd6eda4 authored by Dylan Araps's avatar Dylan Araps

Disk: Exit the function if the user doesn't have df installed

parent d784fb83
......@@ -1594,6 +1594,8 @@ get_term_font() {
}
get_disk() {
type -p df >/dev/null 2>&1 || { err "Disk requires 'df' to function. Install 'df' to get disk info."; return; }
# df flags
case "$os" in
"Linux" | "iPhone OS" | "Windows" | "Solaris" | "GNU")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment