Skip to content

Commit

Permalink
fixup! Exclude reference targets
Browse files Browse the repository at this point in the history
  • Loading branch information
konsolebox committed May 16, 2024
1 parent f259a44 commit 3450404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rakelib/import-xkcp-files.rake
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private
end

targets = build_data['group'].find{ |e| (e['@all'] rescue nil) == "XKCP" }['product']['factor']
.find{ |e| e['@set'] =~ /reference/ }['@set'].split(' ').reject(&/reference/.method(:match?))
.find{ |e| e['@set'] =~ /reference/ }['@set'].split(' ').reject{ |t| t =~ /reference/ }

raise "Targets have similar names." unless targets.size == targets.map(&:downcase).uniq.size

Expand Down

0 comments on commit 3450404

Please sign in to comment.