test-bot: fix bottling non-testing jobs.

Need to handle when the `BOT_PARAMS` are `nil`.
This commit is contained in:
Mike McQuaid 2016-09-12 13:51:26 +01:00
parent afc5aa125f
commit 793a75f3f3

View File

@ -912,7 +912,7 @@ module Homebrew
safe_system "brew", "pull", "--clean", pull_pr
end
if ENV["UPSTREAM_BOTTLE_KEEP_OLD"] || ENV["BOT_PARAMS"].include?("--keep-old")
if ENV["UPSTREAM_BOTTLE_KEEP_OLD"] || ENV["BOT_PARAMS"].to_s.include?("--keep-old")
system "brew", "bottle", "--merge", "--write", "--keep-old", *json_files
else
system "brew", "bottle", "--merge", "--write", *json_files