+function validate_features() {
+ list_all_features | sort | uniq -c | while read cnt feature; do
+ [[ $cnt == 1 ]] && continue;
+ info "Feature $feature found in the following repositories:"
+ for x in $(ls -d $METADIR/*/templates/feature/$feature); do
+ info " - $x"
+ done
+ error "Multiple feature templates are not allowed"
+ done
+ debug "Features list has no duplicate."
+}
+