Skip to content

Commit

Permalink
hasUnstaged changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Sep 4, 2024
1 parent 80f7420 commit 02f2770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 02f2770

Please sign in to comment.