lib/travis/cli/repo_command.rb in travis-1.9.1.travis.1201.9 vs lib/travis/cli/repo_command.rb in travis-1.9.1.travis.1205.9
- old
+ new
@@ -153,13 +153,15 @@
color("Overwrite the config file #{travis_yaml} with the content below?", [:info, :yellow]),
color("This reformats the existing file.", [:info, :red]),
travis_config.to_yaml,
color("(y/N)", [:info, :yellow])
].join("\n\n")
- confirm = ans =~ /^y/i
+ proceed = ans =~ /^y/i
+ else
+ proceed = true
end
- save_travis_config if confirm
+ save_travis_config if proceed
end
def save_travis_config(file = travis_yaml)
yaml = travis_config.to_yaml
yaml.gsub! /^(\s+)('on'|true):/, "\\1on:"