From 7c0863db3db044bb07f6341123c3bf178d41b942 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 26 Jan 2016 22:18:40 +1100 Subject: [PATCH] getdisk swap '/total/' for 'END' --- fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch b/fetch index fcf22931..3e63b664 100755 --- a/fetch +++ b/fetch @@ -1015,7 +1015,7 @@ getdisk () { esac # Get the disk info - disk=$(df $df_flags 2>/dev/null | awk '/total/ {print $2 ":" $3 ":" $5}') + disk=$(df $df_flags 2>/dev/null | awk 'END{print $2 ":" $3 ":" $5}') # Format the output disk_used=${disk#*:}