make the ONLY env variable used in guides generation work with kindle guides

This commit is contained in:
Vijay Dev 2012-02-04 17:55:24 +05:30
parent ef32b59384
commit 71dfce6e47

@ -167,7 +167,7 @@ def guides_to_generate
def select_only(guides)
prefixes = ENV['ONLY'].split(",").map(&:strip)
guides.select do |guide|
prefixes.any? {|p| guide.start_with?(p)}
prefixes.any? { |p| guide.start_with?(p) || guide.start_with?("kindle") }
end
end