From fc6b921ffdce293aa2026a2f14f9ace803e3eaf4 Mon Sep 17 00:00:00 2001 From: qbizns Date: Wed, 1 Apr 2026 16:40:46 +0200 Subject: [PATCH] update-20260401-164046-18676 --- push.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/push.sh b/push.sh index 99f2a83..069ea5e 100755 --- a/push.sh +++ b/push.sh @@ -3,25 +3,21 @@ set -e BRANCH="main" -# Stop if not inside a git repo -git rev-parse --is-inside-work-tree >/dev/null 2>&1 || { - echo "Not inside a git repository." - exit 1 -} - -# Check if there are changes if [ -z "$(git status --porcelain)" ]; then echo "No changes to commit." exit 0 fi -# Random commit message MSG="update-$(date +%Y%m%d-%H%M%S)-$RANDOM" - echo "Using commit message: $MSG" +echo "==> git add" git add . + +echo "==> git commit" git commit -m "$MSG" + +echo "==> git push" git push origin "$BRANCH" echo "Done." \ No newline at end of file