From e677381d1092a723865f715ebca09b20d736be52 Mon Sep 17 00:00:00 2001 From: Frederik Baerentsen Date: Fri, 15 Jul 2022 09:56:22 +0200 Subject: [PATCH] updated bash --- Update Missing/update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"