Updated scripts

This commit is contained in:
Frederik Baerentsen 2022-07-08 10:38:46 +02:00
parent 513ef29ca3
commit 2746b53ca2
2 changed files with 125701 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -2,16 +2,20 @@
d=`date +%Y%m%d` d=`date +%Y%m%d`
echo "Todays date $d" #echo "Todays date $d"
#mv "missing.mcl" "missing_old.mcl" #mv "missing.mcl" "missing_old.mcl"
fromdate=$(ls -1 *_latest.mcl |grep -Eo '[[:digit:]]{8}') fromdate=$(ls -1 *_latest.mcl |grep -Eo '[[:digit:]]{8}')
echo "Last date run $fromdate" #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" cp "$d"".mcl" "$d""_latest.mcl"
mv "$fromdate""_latest.mcl" "archive/""$fromdate"".mcl"
git add "$d""_latest.mcl" "archive/"
git commit -m "Updated $d"
git push origin master