diff --git a/cv b/cv index 965f538..ae04d76 100755 --- a/cv +++ b/cv @@ -59,7 +59,7 @@ frame(){ bot) printf "╚ %-${w}s ═ %-${w}s ═ %-${w}s ╝\n" | sed "s/\ /═/g" ;; esac } -result(){ +parse(){ frame top title "Queried at $date for $(get country)." frame up @@ -98,6 +98,13 @@ result(){ frame down fi } +result(){ + if [ ! -f "$data/$date-$country-out" ] + then + parse > "$data/$date-$country-out" + fi + cat "$data/$date-$country-out" +} # Main code starts here. if [ ! -z "$country" ]