Skip to content

Commit dc424ec

Browse files
committed
release-version: improve project attr checks
1 parent a2c8fae commit dc424ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

release-version.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ then
237237
fi
238238

239239
# Check project xmlns, xmlns:xsi, and xsi:schemaLocation attributes.
240-
grep -q 'xmlns="http://maven.apache.org/POM/4.0.0"' pom.xml >/dev/null 2>/dev/null &&
241-
grep -q 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' pom.xml >/dev/null 2>/dev/null &&
242-
grep -q 'xsi:schemaLocation="http://maven.apache.org/POM/4.0.0%3Cspan%20class="x x-first x-last">\b"' pom.xml >/dev/null 2>/dev/null ||
240+
grep -qF 'xmlns="http://maven.apache.org/POM/4.0.0"' pom.xml >/dev/null 2>/dev/null &&
241+
grep -qF 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' pom.xml >/dev/null 2>/dev/null &&
242+
grep -qF 'xsi:schemaLocation="http://maven.apache.org/POM/4.0.0%3Cspan%20class="x x-first x-last"> ' pom.xml >/dev/null 2>/dev/null ||
243243
{
244244
echo "====================================================================="
245245
echo "NOTE: Your POM's project attributes are incorrect. Fixing it now."

0 commit comments

Comments
 (0)