Remove interactive prompt for easier use in docker

This commit is contained in:
Alex Ling 2020-08-04 12:57:40 +00:00
parent eb528e1726
commit cde5af7066

View File

@ -52,12 +52,8 @@ class Config
config.fill_defaults config.fill_defaults
return config return config
end end
puts "The config file #{cfg_path} does not exist." \ puts "The config file #{cfg_path} does not exist. " \
" Do you want mango to dump the default config there? [Y/n]" "Dumping the default config there."
input = gets
if input && input.downcase == "n"
abort "Aborting..."
end
default = self.allocate default = self.allocate
default.path = path default.path = path
default.fill_defaults default.fill_defaults