File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ main() {
1919 echo " Adding Homebrew/homebrew-core as $( upstream) "
2020 git remote add upstream https://github.com/Homebrew/homebrew-core.git
2121
22- echo " Fetching upstream commits... "
22+ echo " Fetching upstream Homebrew/hombrew-core commits"
2323 git fetch upstream
2424
25- echo " Merging in latest changes"
25+ echo " Merging in latest Homebrew/homebrew-core changes"
2626 git merge upstream/master
2727
2828 echo " Pushing changes to cdrci/homebrew-core fork on GitHub"
@@ -37,7 +37,15 @@ main() {
3737
3838 # Find the docs for bump-formula-pr here
3939 # https://github.com/Homebrew/brew/blob/master/Library/Homebrew/dev-cmd/bump-formula-pr.rb#L18
40- brew bump-formula-pr --force --version=" ${VERSION} " code-server --no-browse --no-audit
40+ local output
41+ if ! output=$( brew bump-formula-pr --version=" ${VERSION} " code-server --no-browse --no-audit 2>&1 ) ; then
42+ if [[ $output == * " Duplicate PRs should not be opened" * ]] ; then
43+ echo " $VERSION is already submitted"
44+ else
45+ echo " $output "
46+ exit 1
47+ fi
48+ fi
4149
4250 # Clean up and remove homebrew-core
4351 cd ..
You can’t perform that action at this time.
0 commit comments