Skip to content

Commit

Permalink
Catch bundle lock failures (#7208)
Browse files Browse the repository at this point in the history
If `bundle lock` failed for some reason, then the exit code wasn't
preserved and the message about the gemfile being updated successfully
was incorrectly printed.
  • Loading branch information
jeffwidman committed May 1, 2023
1 parent 5299b35 commit a551212
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/bump-version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

# Bump the updater's Gemfile.lock with the new version
`cd updater/ && bundle lock`
if $?.exitstatus
puts "Failed to update updater/Gemfile.lock"
exit $?.exitstatus
end
puts "☑️ updater/Gemfile.lock updated"
puts
puts "Now, create the PR"
Expand Down

0 comments on commit a551212

Please sign in to comment.