From 2d3469339e022d334cc70e028bc12880349f65b7 Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 26 Jun 2022 18:04:10 +0200 Subject: [PATCH] small fixes --- push.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/push.sh b/push.sh index 413e8f1..7aee47d 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