File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ process() {
66
66
cd " $1 "
67
67
68
68
# -- Git sanity checks --
69
- repoSlug=$( xmllint --xpath " //*[local-name()=' project' ]/*[local-name()=' scm' ]/*[local-name()=' connection'] " pom.xml| sed ' s_.*github.com[:/]\(.*\)<.*_\1_' )
69
+ repoSlug=$( xmllint --xpath ' //*[local-name()=" project" ]/*[local-name()=" scm" ]/*[local-name()=" connection"] ' pom.xml| sed ' s_.*github.com[:/]\(.*\)<.*_\1_' )
70
70
test " $repoSlug " && info " Repository = $repoSlug " || die ' Could not determine GitHub repository slug'
71
71
git fetch > /dev/null
72
72
git diff-index --quiet HEAD -- || die " Dirty working copy"
@@ -78,7 +78,7 @@ process() {
78
78
# die "Mismatch with upstream branch (local ahead?)"
79
79
80
80
# -- POM sanity checks --
81
- parent=$( xmllint --xpath " //*[local-name()=' project' ]/*[local-name()=' parent' ]/*[local-name()=' artifactId'] " pom.xml| sed ' s/[^>]*>//' | sed ' s/<.*//' )
81
+ parent=$( xmllint --xpath ' //*[local-name()=" project" ]/*[local-name()=" parent" ]/*[local-name()=" artifactId"] ' pom.xml| sed ' s/[^>]*>//' | sed ' s/<.*//' )
82
82
test " $parent " = " pom-scijava" ||
83
83
die " Not pom-scijava parent: $parent "
84
84
129
129
$EXEC git diff-index --quiet HEAD -- || $EXEC git ci -m " Travis: remove obsolete files"
130
130
131
131
# Upgrade version of pom-scijava.
132
- version=$( xmllint --xpath " //*[local-name()=' project' ]/*[local-name()=' parent' ]/*[local-name()=' version'] " pom.xml| sed ' s/[^>]*>//' | sed ' s/<.*//' )
132
+ version=$( xmllint --xpath ' //*[local-name()=" project" ]/*[local-name()=" parent" ]/*[local-name()=" version"] ' pom.xml| sed ' s/[^>]*>//' | sed ' s/<.*//' )
133
133
# HACK: Using a lexicographic comparison here is imperfect.
134
134
if [ " $version " \< " $pomMinVersion " ]
135
135
then
You can’t perform that action at this time.
0 commit comments