We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 072f5e1 commit bda6217Copy full SHA for bda6217
travisify.sh
@@ -68,7 +68,11 @@ process() {
68
# -- Git sanity checks --
69
repoSlug=$(xmllint --xpath '//*[local-name()="project"]/*[local-name()="scm"]/*[local-name()="connection"]' pom.xml|sed 's_.*github.com[:/]\(.*\)<.*_\1_')
70
test "$repoSlug" && info "Repository = $repoSlug" || die 'Could not determine GitHub repository slug'
71
- [[ "$repoSlug" == *.git ]] && die 'GitHub repository slug ('$repoSlug') ends in ".git". Please fix the pom'
+ case "$repoSlug" in
72
+ *.git)
73
+ die "GitHub repository slug ('$repoSlug') ends in '.git'; please fix the POM"
74
+ ;;
75
+ esac
76
git fetch >/dev/null
77
git diff-index --quiet HEAD -- || die "Dirty working copy"
78
branch=$(git rev-parse --abbrev-ref HEAD)
0 commit comments