mirror of
https://github.com/chubin/wttr.in
synced 2025-01-26 10:45:01 +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
|
# change Paris to your default location
|
||||||
local request="wttr.in/${1-Paris}"
|
local request="wttr.in/${1-Paris}"
|
||||||
[ "$COLUMNS" -lt 125 ] && request+='?n'
|
[ "$(tput cols)" -lt 125 ] && request+='?n'
|
||||||
curl -H "Accept-Language: ${LANG%_*}" --compressed "$request"
|
curl -H "Accept-Language: ${LANG%_*}" --compressed "$request"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue