From 10731590114b08b0474dca370640a77dafa9e007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Svensson?= Date: Sat, 4 Jul 2020 14:20:10 +0200 Subject: [PATCH] Only validate features committed to git MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Icd2427c515bb0cc79e9179ba00216c173264ca17 Signed-off-by: Torbjörn Svensson --- releng/scripts/check_features.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releng/scripts/check_features.sh b/releng/scripts/check_features.sh index b936c9d28bf..5d12a390a28 100755 --- a/releng/scripts/check_features.sh +++ b/releng/scripts/check_features.sh @@ -18,7 +18,7 @@ set -e # error out on any failed commands DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) echo "Normalizing branding content on all features" -find * -name feature.xml -not -path */target/* | while read feature_xml; do +git ls-files -- \*/feature.xml | while read feature_xml; do plugin=$(xmllint --xpath 'string(//feature/@plugin)' $feature_xml) if [ -z "$plugin" ]; then plugin=$(xmllint --xpath 'string(//feature/@id)' $feature_xml)