Move comparison to inside if statement
This commit is contained in:
parent
77fe15cb29
commit
70aa01aebb
2
neofetch
2
neofetch
|
@ -2277,12 +2277,12 @@ getimage () {
|
||||||
size=$(identify -format "%w %h" "$img")
|
size=$(identify -format "%w %h" "$img")
|
||||||
og_width=${size%% *}
|
og_width=${size%% *}
|
||||||
og_height=${size##* }
|
og_height=${size##* }
|
||||||
fi
|
|
||||||
|
|
||||||
# This checks to see if height is geater than width
|
# This checks to see if height is geater than width
|
||||||
# so we can do a better crop of portrait images.
|
# so we can do a better crop of portrait images.
|
||||||
size=$og_height
|
size=$og_height
|
||||||
[ "$og_height" -gt "$og_width" ] && size=$og_width
|
[ "$og_height" -gt "$og_width" ] && size=$og_width
|
||||||
|
fi
|
||||||
|
|
||||||
case "$crop_mode" in
|
case "$crop_mode" in
|
||||||
fit)
|
fit)
|
||||||
|
|
Reference in New Issue