Adding better controls for .git checking.
This commit is contained in:
parent
d67dcd78a6
commit
e469ee6fe8
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue