From 02f277045354ebe45ad5202940be433ab44f6897 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Tue, 3 Sep 2024 20:20:30 -0400 Subject: [PATCH] hasUnstaged changes --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index edb69b517..f71406038 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -394,7 +394,7 @@ fun hasUnstaged(): Boolean { commandLine("git", "status", "--porcelain") standardOutput = stdout } - val result = stdout.toString().replace("M gradlew", "").trimEnd() + val result = stdout.toString().replace(Regex("M gradlew(\\.bat)?"), "").trimEnd() if (result.isNotEmpty()) println("Found stageable results:\n${result}\n") return result.isNotEmpty()