bin/crowdin-cli in crowdin-cli-0.0.18 vs bin/crowdin-cli in crowdin-cli-0.0.19

- old
+ new

@@ -506,20 +506,14 @@ file['source'] = '/' + file['source'] unless file['source'].start_with?('/') file['translation'] = '/' + file['translation'] unless file['translation'].start_with?('/') end if @config['base_path'] - if @config['base_path'].start_with?('/') - @base_path = @config['base_path'] - else - @base_path = Dir.pwd + '/' + @config['base_path'] - end + @base_path = @config['base_path'] else @base_path = Dir.pwd puts <<EOS -Warning: Configuration file misses optional section `base_path`. -Set the working directory - `#{@base_path}` - +Warning: Configuration misses parameter `base_path` that defines your project root directory. Using `#{@base_path}` as a root directory. EOS end Crowdin::API.log = Logger.new($stderr) if global[:v] @crowdin = Crowdin::API.new(api_key: @config['api_key'], project_id: @config['project_identifier'], base_url: @config['base_url'] || 'http://api.crowdin.net')