From 70aa01aebbfe7617eddecc5f45a302bd42747f1d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 28 May 2016 14:07:19 +1000 Subject: [PATCH] Move comparison to inside if statement --- neofetch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index 36121e47..317fded6 100755 --- a/neofetch +++ b/neofetch @@ -2277,12 +2277,12 @@ getimage () { size=$(identify -format "%w %h" "$img") og_width=${size%% *} og_height=${size##* } - fi - # This checks to see if height is geater than width - # so we can do a better crop of portrait images. - size=$og_height - [ "$og_height" -gt "$og_width" ] && size=$og_width + # This checks to see if height is geater than width + # so we can do a better crop of portrait images. + size=$og_height + [ "$og_height" -gt "$og_width" ] && size=$og_width + fi case "$crop_mode" in fit)