Merge pull request #323 from PierceGriffiths/patch-1

Fixed error in bash function
This commit is contained in:
Igor Chubin 2019-07-06 20:39:22 +02:00 committed by GitHub
commit 0df65139e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
}