Remove bad whitespace from weather script and move schema to data dir

main
Ian Mancini 5 years ago
parent 2fbff4f57c
commit 5554a36edf

@ -2,7 +2,7 @@
set -Eeuo pipefail
source ./.weather-schema
source data/weather-schema
FIELD_COUNT=$(echo $SCHEMA | grep -o ";" | wc -l)
URL=https://ssl.smn.gob.ar/dpd/zipopendata.php?dato=tiepre
TMPDIR=/tmp/weather
@ -110,8 +110,10 @@ done
if [ "$print" = true ]; then
echo -e "$processed"
else
if [ -f $OUT ]; then
rm $OUT
echo -e "$processed" >> $OUT
fi
echo -e "$processed" > $OUT
fi
# Cleanup

Loading…
Cancel
Save