Skip to content

Commit

Permalink
Run sbt argument only if tasks are not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Feb 29, 2024
1 parent 97033a2 commit bb3c08d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/build/src/engine/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,10 @@ impl RunContext {
if self.config.build_launcher_package() {
tasks.push("buildLauncherDistribution");
}
sbt.call_arg(Sbt::concurrent_tasks(tasks)).await?;

if !tasks.is_empty() {
sbt.call_arg(Sbt::concurrent_tasks(tasks)).await?;
}
} else {
// If we are run on a weak machine (like GH-hosted runner), we need to build things one
// by one.
Expand Down

0 comments on commit bb3c08d

Please sign in to comment.