From a551212af04b816962c02ae551f46186f739f159 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Mon, 1 May 2023 14:55:22 -0700 Subject: [PATCH] Catch `bundle lock` failures (#7208) 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. --- bin/bump-version.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/bump-version.rb b/bin/bump-version.rb index d6b0f49672f..b22a52f6695 100755 --- a/bin/bump-version.rb +++ b/bin/bump-version.rb @@ -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"