Skip to content

Commit

Permalink
fix beaker exec when called from bundle exec
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 committed Jan 4, 2024
1 parent fcf06b4 commit ed4bf90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/ci.rake
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ end
def beaker(command, *argv)
argv.concat(ENV['OPTIONS'].split(' ')) if ENV['OPTIONS']

sh('beaker', command.to_s, *argv)
bundle_cmd = (ENV.fetch('BUNDLE_GEMFILE', false) && ENV.fetch('BUNDLE_BIN_PATH', false)) ? %w[bundle exec] : []
sh(*bundle_cmd, 'beaker', command.to_s, *argv)
end

def beaker_setup(type)
Expand Down

0 comments on commit ed4bf90

Please sign in to comment.