From fd30321120bea7d0b174f598c48898ac2b31a8ea Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 28 May 2016 11:05:29 +1000 Subject: [PATCH] Update ascii changes --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 9cefba0e..ad87859c 100755 --- a/neofetch +++ b/neofetch @@ -2208,10 +2208,10 @@ getascii () { # Turn the file into a variable and strip escape codes. ascii_strip=$(<"$ascii") ascii_strip=${ascii_strip//\$\{??\}} - ascii_strip=${ascii_strip//'\\'} + ascii_strip=${ascii_strip//'\\'/ } ascii_strip=${ascii_strip//'\'} - # Get length of longest line + # Get ascii file size in rows/cols ascii_size="$(awk 'END {printf NR " "}length>max{max=length}END{printf max}' <<< "$ascii_strip")" lines=${ascii_size/ *} ascii_length=${ascii_size/$lines}