[ci skip] Allow .git to be a regular file (#8631)

This commit is contained in:
Amaury Rousseau 2022-12-09 17:33:00 +01:00 committed by GitHub
parent f6ffbc2720
commit 0baf2ff1b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import java.util.Locale
if (!file(".git").isDirectory) {
if (!file(".git").exists()) {
val errorText = """
=====================[ ERROR ]=====================