3 lines
203 B
Plaintext
3 lines
203 B
Plaintext
|
typeset -g _cprompts_covid=$(curl -sL https://api.covid19api.com/country/${REPLY:-germany} | jq -e '. |= sort_by (.Date) | .[-1].Active')
|
||
|
[ ! -z $_cprompts_covid ] && print ${_cprompts_covid} > $tmpfile
|