home · contact · privacy
Add some more pre-seeded early days.
[berlin-corona-table] / update.sh
index 6e4527191aabeee3835d483086fe523f66ed7eba..008f716e732607204655ffd7e0529d44b21e99c0 100755 (executable)
--- a/update.sh
+++ b/update.sh
@@ -14,7 +14,7 @@ fi
 today="$(date +%Y-%m-%d)"
 curl "${CSV_URL}" \
 | awk 'BEGIN { FS=";"; ORS=""; print "'${today}'" }; '\
-'!/^Bezirk/ { printf "%4d", $3 }; '\
+'!/^"Bezirk"/ { printf "%4d", $3 }; '\
 'END { printf "\n" }' "${filename}" >> "${table_path}"
 
 # Write enhanced table output to directory served by web server.
@@ -24,5 +24,5 @@ curl "${CSV_URL}" \
 # kill this script due to "set -e".
 ./enhance_table.py "${table_path}" html > /tmp/berlin_corona.html
 ./enhance_table.py "${table_path}" txt > /tmp/berlin_corona.txt
-mv /tmp/berlin_corona.html /var/www/html/
-mv /tmp/berlin_corona.txt /var/www/html/
+mv /tmp/berlin_corona.html /var/www/html/
+mv /tmp/berlin_corona.txt /var/www/html/