Skip to content

Commit 06232ec

Browse files
committed
add update script
1 parent 3c57d70 commit 06232ec

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

ent-branches.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
lab512a-loading-nf
2+
lab512b-nf-sharing
3+
lab512c-nf-routes
4+
lab512d-nf-routes-solution
5+
lab512e-nf-loading-components
6+
lab512f-nf-multi-starter
7+
lab512g-nf-multi-solution
8+
lab512h-nf-angular-elements

update.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
BRANCH_LIST="ent-branches.txt"
6+
FIXED_COMMIT="a2edb30e8fa08bfd" # der zu cherry-pickende Commit
7+
8+
while read -r BRANCH; do
9+
if [[ -z "$BRANCH" ]]; then
10+
continue
11+
fi
12+
13+
echo "===> Wechsel zu $BRANCH"
14+
git checkout "$BRANCH"
15+
16+
echo "===> Cherry-Pick von $FIXED_COMMIT"
17+
git cherry-pick "$FIXED_COMMIT"
18+
19+
done < "$BRANCH_LIST"
20+
21+
echo "✅ Alle Cherry-Picks abgeschlossen."

0 commit comments

Comments
 (0)