From d738ad6f823c25fec58cc07659adf846de9d8b29 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 16 Dec 2016 23:14:20 +1100 Subject: [PATCH] Disk: If df fails, abort --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 6e9af93e..1c019f13 100755 --- a/neofetch +++ b/neofetch @@ -1540,7 +1540,7 @@ get_disk() { type -p df >/dev/null 2>&1 || { err "Disk requires 'df' to function. Install 'df' to get disk info."; return; } # Get the info for / - disks=($(df -h /)) + disks=($(df -h /)) || { err "Disk: 'df' exited with error code 1"; return; } # Split the info disk_used="${disks[9]}"