From 5723f53250d85f717b2ba8718a4489848a1a32e5 Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 27 Jan 2016 23:30:09 +1100 Subject: [PATCH] pipe the file into 'wc' so that it doesn't print filename --- fetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fetch b/fetch index 3312e1cd..ca9d4da6 100755 --- a/fetch +++ b/fetch @@ -1204,8 +1204,7 @@ getshuffle () { getascii () { # Get length of longest line - length="$(wc -L "$ascii")" - length=${length/ *} + length="$(wc -L < "$ascii")" # Set the text padding padding="\e[$((length + gap))C"