|
|
|
@ -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
|
|
|
|
|
rm $OUT
|
|
|
|
|
echo -e "$processed" >> $OUT
|
|
|
|
|
if [ -f $OUT ]; then
|
|
|
|
|
rm $OUT
|
|
|
|
|
fi
|
|
|
|
|
echo -e "$processed" > $OUT
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
|