diff --git a/push.sh b/push.sh index 413e8f15..7aee47d9 100755 --- a/push.sh +++ b/push.sh @@ -7,10 +7,11 @@ 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 push origin --set-upstream origin/main +git pull --rebase upstream main && \ +git add . && \ +git commit -m "${date}: ${changedfiles}" && \ +git push origin --set-upstream origin/main && \ +git switch main exit git add content/posts