From: Kai Moritz Date: Fri, 29 May 2026 23:54:33 +0000 (+0000) Subject: PUSH.sh → push.sh: source branches.sh X-Git-Tag: scripting--2026-06-04~44 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=04dba9e8d19badfe5e7a2b74c619bd248c5f00db;p=demos%2Fkafka%2Ftraining PUSH.sh → push.sh: source branches.sh Co-Authored-By: Claude Sonnet 4.6 --- diff --git a/PUSH.sh b/PUSH.sh deleted file mode 100755 index f1bd86f6..00000000 --- a/PUSH.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -e - -source BRANCHES.sh - -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 || 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 diff --git a/push.sh b/push.sh new file mode 100755 index 00000000..ebcf19d3 --- /dev/null +++ b/push.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +source branches.sh + +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 || 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