Move comparison to inside if statement
This commit is contained in:
parent
77fe15cb29
commit
70aa01aebb
1 changed files with 5 additions and 5 deletions
10
neofetch
10
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)
|
||||
|
|
Loading…
Reference in a new issue