Merge pull request #323 from PierceGriffiths/patch-1

Fixed error in bash function
pull/326/head
Igor Chubin 6 years ago committed by GitHub
commit 0df65139e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save