From 6e5ba8077a543faa78691c3d0219af398e568149 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 18 Jun 2019 21:04:54 -0700 Subject: [PATCH] Fix sync-to-maven-central script --- ci/scripts/sync-to-maven-central.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/scripts/sync-to-maven-central.sh b/ci/scripts/sync-to-maven-central.sh index f0825c84a0..56b305c886 100755 --- a/ci/scripts/sync-to-maven-central.sh +++ b/ci/scripts/sync-to-maven-central.sh @@ -11,10 +11,10 @@ echo "Syncing ${buildName}/${buildNumber} to Maven Central" -s \ -o /dev/null \ -I \ - -w "%{http_code}" + -w "%{http_code}" \ "https://oss.sonatype.org/service/local/repositories/releases/content/org/springframework/boot/spring-boot/${version}/spring-boot-${version}.jar.sha1") - if [ ${publishStatus} == "200" ]; then + if [[ ${publishStatus} == "200" ]]; then echo "Already published to Sonatype" else echo "Calling Bintray to sync to Sonatype"