mirror of
https://github.com/chubin/wttr.in
synced 2024-12-24 02:43:07 +00:00
Fixed error in bash function
Replaced "$COLUMNS" with "$(tput cols)", because shell variables are not exported to child processes.
This commit is contained in:
parent
a1517df21f
commit
9a59cc67bf
1 changed files with 1 additions and 1 deletions
|
@ -2,6 +2,6 @@ wttr()
|
|||
{
|
||||
# change Paris to your default location
|
||||
local request="wttr.in/${1-Paris}"
|
||||
[ "$COLUMNS" -lt 125 ] && request+='?n'
|
||||
[ "$(tput cols)" -lt 125 ] && request+='?n'
|
||||
curl -H "Accept-Language: ${LANG%_*}" --compressed "$request"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue