Skip to content

Commit

Permalink
Allow publishing from a folder with spaces (#2822)
Browse files Browse the repository at this point in the history
* Allow publishing from a folder with spaces

Though it still doesn't work for the docs due to
lightbend/paradox#387

* Also check that rsync succeeded
  • Loading branch information
raboof authored Nov 20, 2019
1 parent fbcd94f commit 3074373
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project/Publish.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ object DeployRsync extends AutoPlugin {
deployRsync := {
val (_, host) = (Space ~ StringBasic).parsed
deployRsyncArtifact.value.foreach {
case (from, to) => s"rsync -rvz $from/ $host:$to"!
case (from, to) =>
val result = Seq("rsync", "-rvz", s"$from/", s"$host:$to").!
require(result == 0, "rsync should return success")
}
}
)
Expand Down

0 comments on commit 3074373

Please sign in to comment.