small fixes

This commit is contained in:
teldra 2022-06-26 18:33:16 +02:00
parent 33147570df
commit 44fd2558ff
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
if ! git switch "${date}"; then
git switch -c ${date} origin/main
git switch -c ${date}
fi
date="$(date +%Y-%m-%d)-test"
@ -10,7 +10,7 @@ set -x
git add . && \
git commit -m "${date}: ${changedfiles}" && \
git pull --rebase upstream main && \
git push -f origin && \
git push --set-upstream origin origin/main && \
git switch main
exit