Terminate process if .git folder is not a repository (#3937)

Terminate process if folder is not a repository
This commit is contained in:
Alexander Brandes 2023-01-16 00:18:51 +01:00 committed by GitHub
parent abbac057ed
commit 63a6bdc1d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,16 @@ plugins {
group = "com.plotsquared"
version = "6.10.9-SNAPSHOT"
if (!File("$rootDir/.git").exists()) {
logger.lifecycle("""
**************************************************************************************
You need to fork and clone this repository! Don't download a .zip file.
If you need assistance, consult the GitHub docs: https://docs.github.com/get-started/quickstart/fork-a-repo
**************************************************************************************
""".trimIndent()
).also { kotlin.system.exitProcess(1) }
}
subprojects {
group = rootProject.group
version = rootProject.version