Commit d233fcd2 authored by Dylan Araps's avatar Dylan Araps

neofetch: fix travis

parent 3614099f
...@@ -3767,10 +3767,10 @@ get_window_size() { ...@@ -3767,10 +3767,10 @@ get_window_size() {
# If the ID was found get the window size. # If the ID was found get the window size.
if [[ "$current_window" ]]; then if [[ "$current_window" ]]; then
term_size="$(xwininfo -id "$current_window")" term_size=("$(xwininfo -id "$current_window")")
term_width="${term_size#*Width: }" term_width="${term_size[0]#*Width: }"
term_width="${term_width/$'\n'*}" term_width="${term_width/$'\n'*}"
term_height="${term_size/*Height: }" term_height="${term_size[0]/*Height: }"
term_height="${term_height/$'\n'*}" term_height="${term_height/$'\n'*}"
fi fi
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment