small fixes

This commit is contained in:
teldra 2022-06-26 18:30:05 +02:00
parent e61d820cbf
commit 3d546ef4a6
1 changed files with 3 additions and 3 deletions

View File

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