From: Kai Moritz Date: Tue, 24 Mar 2026 16:06:22 +0000 (+0100) Subject: `PUSH.sh` scheitert nicht mehr, wenn der Branch neu ist X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=71991208a9154000a717724b98c82a188ad2660c;p=demos%2Fkafka%2Ftraining `PUSH.sh` scheitert nicht mehr, wenn der Branch neu ist --- diff --git a/PUSH.sh b/PUSH.sh index a34ce638..f1bd86f6 100755 --- a/PUSH.sh +++ b/PUSH.sh @@ -7,7 +7,7 @@ for i in grundlagen__docker $BRANCHES; do declare -n branch=${i} echo -e "\nPushing $branch over origin/$branch" - git tag -f ${branch}--BACKUP-ORIGIN--$(date +'%Y-%m-%d--%H-%M-%S') origin/$branch - git tag -f ${branch}--BACKUP-ORIGIN--LAST origin/$branch + git tag -f ${branch}--BACKUP-ORIGIN--$(date +'%Y-%m-%d--%H-%M-%S') origin/$branch || echo "origin/$branch existiert (noch) nicht!" + git tag -f ${branch}--BACKUP-ORIGIN--LAST origin/$branch || echo "origin/$branch existiert (noch) nicht!" git push --force origin $branch:$branch done