small fixes

This commit is contained in:
teldra 2022-06-26 18:15:20 +02:00
parent 15b2a6debc
commit 260253f53d
1 changed files with 2 additions and 1 deletions

View File

@ -2,14 +2,15 @@
date="$(date +%Y-%m-%d)"
changedfiles=$(git diff --name-status|awk '{print $2}')
git pull --rebase upstream main
if ! git switch "${date}"; then
git switch -c ${date} upstream/main
fi
git pull --rebase upstream main && \
git add . && \
git commit -m "${date}: ${changedfiles}" && \
git pull --rebase upstream main && \
git push -f origin --set-upstream origin "${date}" && \
git switch main