From d233fcd2d1663d5828290c8b8600d1ec83ad3cf4 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 11 Sep 2019 00:16:50 +0300 Subject: [PATCH] neofetch: fix travis --- neofetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index d6112c13..107301be 100755 --- a/neofetch +++ b/neofetch @@ -3767,10 +3767,10 @@ get_window_size() { # If the ID was found get the window size. if [[ "$current_window" ]]; then - term_size="$(xwininfo -id "$current_window")" - term_width="${term_size#*Width: }" + term_size=("$(xwininfo -id "$current_window")") + term_width="${term_size[0]#*Width: }" term_width="${term_width/$'\n'*}" - term_height="${term_size/*Height: }" + term_height="${term_size[0]/*Height: }" term_height="${term_height/$'\n'*}" fi fi