From cc9c3a45733f9bb1168419e16c72b91fe0cf866b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 11 Jan 2017 08:15:28 +1100 Subject: [PATCH] Disk: Fixed error in output --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 1dc4a1ee..93c82ffa 100755 --- a/neofetch +++ b/neofetch @@ -1697,7 +1697,8 @@ get_disk() { # Create an array called 'disks' where each element is a separate line from # df's output. We then unset the first element which removes the column titles. IFS=$'\n' - disks=($(df "${df_flags[@]}" "${disk_show[@]:-/}")) && unset 'disks[0]' + disks=($(df "${df_flags[@]}" "${disk_show[@]:-/}" 2>/dev/null)) + unset 'disks[0]' IFS="$old_ifs" # Stop here if 'df' fails to print disk info.