Skip to content

Commit

Permalink
Define variable for tag-commit pairs in tag-porting script
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Oct 18, 2023
1 parent 9a137af commit b8f41b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/migrate-tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ prepend-package-name() {
done
}

for pair in "$(prepend-package-name)"; do
tag_commit_pairs=$(prepend-package-name)

for pair in "$tag_commit_pairs"; do
echo "$pair" | xargs -n 2 bash -c 'git tag "$0" "$1"'
done

for pair in "$(prepend-package-name)"; do
for pair in "$tag_commit_pairs"; do
echo "$pair" | cut -d' ' -f1 | xargs -n 1 bash -c 'git push origin "$0"'
done

0 comments on commit b8f41b6

Please sign in to comment.