Updated scripts

This commit is contained in:
Frederik Baerentsen 2022-07-08 10:40:47 +02:00
parent 2746b53ca2
commit a6122fbbc4

View File

@ -1,4 +1,5 @@
#!/bin/bash
source ../apikey
d=`date +%Y%m%d`
@ -9,7 +10,7 @@ fromdate=$(ls -1 *_latest.mcl |grep -Eo '[[:digit:]]{8}')
#echo "Last date run $fromdate"
python2 "update_missing.py" "$fromdate""_latest.mcl" "$d"".mcl" <API KEY> $fromdate $d
python2 "update_missing.py" "$fromdate""_latest.mcl" "$d"".mcl" $api_key $fromdate $d
cp "$d"".mcl" "$d""_latest.mcl"
mv "$fromdate""_latest.mcl" "archive/""$fromdate"".mcl"