1
0
Fork 0
mirror of synced 2024-07-08 15:56:23 +12:00

Adding better controls for .git checking.

This commit is contained in:
mike12345567 2022-09-14 11:11:20 +01:00
parent d67dcd78a6
commit e469ee6fe8

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(