From 989ee60935a8872d488b534b3406f07d982a1832 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Fri, 8 Aug 2014 12:16:59 +0200 Subject: [PATCH] fix typo of last commit --- publish-nightly | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/publish-nightly b/publish-nightly index 21a46f4..4719dc1 100755 --- a/publish-nightly +++ b/publish-nightly @@ -30,10 +30,12 @@ EOM } # publish scaladoc nightlies - rsync -az build/scaladoc/ "$nightly_rsync_dest/$scaladocDir" + [[ -d build/scaladoc/ ]] && { + rsync -az build/scaladoc/ "$nightly_rsync_dest/$scaladocDir" + } # push to the maven repository. in 2.11.x and above, we've already published during the main job - [[ -e dists/maven/latest/build.xml ]]; then + [[ -e dists/maven/latest/build.xml ]] && { cd dists/maven/latest ant deploy -Dsettings.file=$maven_settings_file fi