mirror of
https://github.com/chubin/wttr.in
synced 2025-01-12 03:58:45 +00:00
Merge pull request #323 from PierceGriffiths/patch-1
Fixed error in bash function
This commit is contained in:
commit
0df65139e3
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