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

Loading…
Cancel
Save