forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
e61d820cbf
commit
3d546ef4a6
6
push.sh
6
push.sh
|
@ -1,16 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
date="$(date +%Y-%m-%d)"
|
date="$(date +%Y-%m-%d)-test"
|
||||||
changedfiles=$(git diff --name-status|awk '{print $2}')
|
changedfiles=$(git diff --name-status|awk '{print $2}')
|
||||||
|
|
||||||
if ! git switch "${date}"; then
|
if ! git switch "${date}"; then
|
||||||
git switch -c ${date} origin/main
|
git switch -c ${date} origin/main
|
||||||
fi
|
fi
|
||||||
|
set -x
|
||||||
git add . && \
|
git add . && \
|
||||||
git commit -m "${date}: ${changedfiles}" && \
|
git commit -m "${date}: ${changedfiles}" && \
|
||||||
git pull --rebase upstream main && \
|
git pull --rebase upstream main && \
|
||||||
git push -f origin --set-upstream origin/"${date}" && \
|
git push -f origin && \
|
||||||
git switch main
|
git switch main
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in New Issue
Block a user