From 8b275b67660acaeda66fc080f9cdd516ceb056d8 Mon Sep 17 00:00:00 2001 From: Sven Date: Fri, 30 May 2025 12:03:41 +0200 Subject: [PATCH] Improve bootstrap --- bootstrap.sh | 2 +- settings.gradle.kts | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 7e3516b..46a1e94 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,4 @@ #!/usr/bin/bash # Fetch all submodule content. -git submodule update --force --recursive --init --remote +git submodule update --force --recursive --init diff --git a/settings.gradle.kts b/settings.gradle.kts index 0110a58..0a45345 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -4,9 +4,13 @@ plugins { rootProject.name = "Chat-OG" -exec { - workingDir(rootDir) - commandLine("sh", "bootstrap.sh") +val process: Process = ProcessBuilder("sh", "bootstrap.sh") + .directory(rootDir) + .start() + +val exitValue = process.waitFor() +if (exitValue != 0) { + throw GradleException("bootstrap.sh failed with exit code $exitValue") } include("libs:Utilities-OG")