From a2331ca73ea0b3718edc094147ea2fcf124d0984 Mon Sep 17 00:00:00 2001 From: James Couball Date: Thu, 20 Jan 2022 14:30:00 -0800 Subject: [PATCH] Use the Bump module instead of shelling out to bump (#4) Co-authored-by: James Couball --- bin/create_release | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bin/create_release b/bin/create_release index ea13917..beea05c 100755 --- a/bin/create_release +++ b/bin/create_release @@ -395,13 +395,8 @@ class ReleaseCreator print 'Updating version...' message, status = Bump::Bump.run(options.release_type, commit: false) error 'Could not bump version' unless status == 0 - version_file = `bump file`.chomp - if $CHILD_STATUS.success? - puts 'OK' - else - error 'Could not get version file' - end - `git add #{version_file}` + version_file = Bump::Bump.file + `git add '#{version_file}'` if $CHILD_STATUS.success? puts 'OK' else