Terminate process if .git folder does not exist (#2070)

Terminate process if folder is not a repository
Dieser Commit ist enthalten in:
Alexander Brandes 2023-01-15 20:24:51 +01:00 committet von GitHub
Ursprung 606ffad12b
Commit c0563b6574
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -9,6 +9,16 @@ plugins {
id("xyz.jpenilla.run-paper") version "2.0.1"
}
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) }
}
logger.lifecycle("""
*******************************************
You are building FastAsyncWorldEdit!