bin/rconf in rconf-0.6.19 vs bin/rconf in rconf-0.6.20
- old
+ new
@@ -38,10 +38,10 @@
opt :config, 'Set path to configuration file', :type => :string
opt :output, 'Output file (output to STDOUT by default)', :type => :string
opt :force, 'Run rconf even if configuration file has not changed'
opt :verbose, 'Print debug output'
end
- if opts[:config].nil? && !opts[:configurators]
+ if opts[:config].nil? && !opts[:configurators] && !opts[:update]
opts[:config] = Dir["./*#{CONFIG_EXTENSION}"]
if opts[:config].empty?
Trollop::die :config, "not used and could not find a '#{CONFIG_EXTENSION}' file in the working directory"
else
opts[:config] = opts[:config].first