diff --git a/Update Missing/update.sh b/Update Missing/update.sh index 7ae95d0..08750a3 100644 --- a/Update Missing/update.sh +++ b/Update Missing/update.sh @@ -25,7 +25,9 @@ python2 update_missing.py #mv "$d"".mcl" "$d""_latest.mcl" || error_exit "cannot cp $d to latest" mv "$fromdate""_latest.mcl" "archive/""$fromdate"".mcl" || error_exit "cannot mv to archive" -git add "$d""_latest.mcl" "archive/" "*" >> "log/$d.log" || error_exit "cannot git add" +git add "$d""_latest.mcl" "archive/" "log/" >> "log/$d.log" || error_exit "cannot git add" + +git rm "$fromdate""_latest.mcl" >> "log/$d.log" || error_exit "cannot git rm" git commit -m "Updated $d" >> "log/$d.log" || error_exit "cannot git commit"