From b21533d84260b4add39098e2585894b7e49fd8f6 Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 17 Feb 2016 11:01:26 +1100 Subject: [PATCH] Reduce size of if block --- fetch | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fetch b/fetch index dcedf709..ad2fdcc5 100755 --- a/fetch +++ b/fetch @@ -1766,14 +1766,8 @@ getascii () { # Overwrite distro colors if '$ascii_colors' doesn't # equal 'distro'. - if [ "${ascii_colors[0]}" != "distro" ]; then - c1=$(color "${ascii_colors[0]}") - c2=$(color "${ascii_colors[1]}") - c3=$(color "${ascii_colors[2]}") - c4=$(color "${ascii_colors[3]}") - c5=$(color "${ascii_colors[4]}") - c6=$(color "${ascii_colors[5]}") - fi + [ "${ascii_colors[0]}" != "distro" ] && \ + ascii_colors ${ascii_colors[@]} # We only use eval in the distro ascii files. print="$(eval printf "$(<"$ascii")")"