From eca9a6c32ef30fb63fe0cd93ad61572c5211596c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 22 Apr 2018 10:21:24 +1000 Subject: [PATCH] general: Cleanup --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 6854c3a7..77dbdbf6 100755 --- a/neofetch +++ b/neofetch @@ -2922,12 +2922,11 @@ get_term_size() { get_image_size() { # This functions determines the size to make the thumbnail image. read -r lines columns <<< "$(stty size)" + read -r width height <<< "$(identify -format "%w %h" "$image")" font_width="$((term_width / columns))" font_height="$((term_height / lines))" - read -r width height <<< "$(identify -format "%w %h" "$image")" - # Calculate image size based on terminal size. # We multiply the sizes by 10 to do some more precise division. while ((width >= (term_width * 10 / 25) ||