update-20260401-164046-18676

This commit is contained in:
2026-04-01 16:40:46 +02:00
parent deda1260ea
commit fc6b921ffd

14
push.sh
View File

@@ -3,25 +3,21 @@ set -e
BRANCH="main" 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 if [ -z "$(git status --porcelain)" ]; then
echo "No changes to commit." echo "No changes to commit."
exit 0 exit 0
fi fi
# Random commit message
MSG="update-$(date +%Y%m%d-%H%M%S)-$RANDOM" MSG="update-$(date +%Y%m%d-%H%M%S)-$RANDOM"
echo "Using commit message: $MSG" echo "Using commit message: $MSG"
echo "==> git add"
git add . git add .
echo "==> git commit"
git commit -m "$MSG" git commit -m "$MSG"
echo "==> git push"
git push origin "$BRANCH" git push origin "$BRANCH"
echo "Done." echo "Done."