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

master
Dylan Araps 9 years ago
parent d784fb8370
commit 7bd6eda49d
  1. 0
      %1
  2. 2
      neofetch

@ -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")

Loading…
Cancel
Save