Adding better controls for .git checking.

This commit is contained in:
mike12345567 2022-09-14 11:11:20 +01:00
parent d67dcd78a6
commit e469ee6fe8
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ function checkInPlugin() {
async function askAboutTopLevel(name) {
const files = fs.readdirSync(process.cwd())
// we are in an empty git repo, don't ask
if (files.length === 1 && files[0] === ".git") {
if (files.find(file => file === ".git")) {
return false
} else {
console.log(