Skip to content

Commit bda6217

Browse files
committed
travisify: fix bashism
We want to stay POSIX-friendly.
1 parent 072f5e1 commit bda6217

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

travisify.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ process() {
6868
# -- Git sanity checks --
6969
repoSlug=$(xmllint --xpath '//*[local-name()="project"]/*[local-name()="scm"]/*[local-name()="connection"]' pom.xml|sed 's_.*github.com[:/]\(.*\)<.*_\1_')
7070
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'
71+
case "$repoSlug" in
72+
*.git)
73+
die "GitHub repository slug ('$repoSlug') ends in '.git'; please fix the POM"
74+
;;
75+
esac
7276
git fetch >/dev/null
7377
git diff-index --quiet HEAD -- || die "Dirty working copy"
7478
branch=$(git rev-parse --abbrev-ref HEAD)

0 commit comments

Comments
 (0)