From 33147570dff797169c6b2a16a05e3236080dba92 Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 26 Jun 2022 18:30:52 +0200 Subject: [PATCH] small fixes --- push.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/push.sh b/push.sh index cad70ae3..1cc0020d 100755 --- a/push.sh +++ b/push.sh @@ -1,11 +1,11 @@ #!/bin/bash +if ! git switch "${date}"; then + git switch -c ${date} origin/main +fi 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}" && \