bin/rconf in rconf-1.0.1 vs bin/rconf in rconf-1.0.3

- old
+ new

@@ -62,21 +62,23 @@ rescue Exception => e Trollop::die :output, "Failed to initialize output file: #{e.message}" end end Command.set_verbose if opts[:verbose] - if opts[:configurators] - new.list_configurators - elsif opts[:platform] - new.show_platform - elsif opts[:overrides] - new.show_overrides - elsif opts[:update] - new.update - elsif opts[:remove] - new.remove - else - new.configure(opts) + Dir.chdir(File.dirname(opts[:config])) do + if opts[:configurators] + new.list_configurators + elsif opts[:platform] + new.show_platform + elsif opts[:overrides] + new.show_overrides + elsif opts[:update] + new.update + elsif opts[:remove] + new.remove + else + new.configure(opts) + end end end # List all available configurators #