3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-27 03:12:37 +01:00

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" 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(""" logger.lifecycle("""
******************************************* *******************************************
You are building FastAsyncWorldEdit! You are building FastAsyncWorldEdit!