lib/kpm/system.rb in kpm-0.8.0 vs lib/kpm/system.rb in kpm-0.8.1
- old
+ new
@@ -136,10 +136,10 @@
last_key = ''
`#{command}`.split("\n").each do |prop|
break if prop.to_s.strip.empty?
- if property_count.positive?
+ if property_count > 0
props = prop.split('=')
if !(props[1].nil? && props[1].to_s.strip.size > MAX_VALUE_COLUMN_WIDTH) && output_as_json == false
chunks = ".{1,#{MAX_VALUE_COLUMN_WIDTH}}"