Skip to content

Commit

Permalink
do not blow up when RUBYOPT is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Aug 5, 2017
1 parent 0d7a8bb commit 4602415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puma/launcher.rb
Expand Up @@ -168,7 +168,7 @@ def run
env = Bundler::ORIGINAL_ENV
# add -rbundler/setup so we load from Gemfile when restarting
bundle = "-rbundler/setup"
env["RUBYOPT"] = [env["RUBYOPT"], bundle].join(" ") unless env["RUBYOPT"].include?(bundle)
env["RUBYOPT"] = [env["RUBYOPT"], bundle].join(" ") unless env["RUBYOPT"].to_s.include?(bundle)
env
else
ENV.to_h
Expand Down

0 comments on commit 4602415

Please sign in to comment.