bin/oneacct-export in oneacct-export-0.2.1 vs bin/oneacct-export in oneacct-export-0.2.2
- old
+ new
@@ -42,10 +42,10 @@
if options.groups_file
log.debug('Reading groups from file...')
if File.exist?(options.groups_file) && File.readable?(options.groups_file)
file = File.open(options.groups_file, 'r')
file.each_line do |line|
- groups[groups.keys.first] << line
+ groups[groups.keys.first] << line.strip
end
file.close
else
log.error("File contaning groups: #{options.groups_file} doesn't exists or cannot be read. "\
'Skipping groups restriction...')