added basic checks for .git folder
parent
7119837775
commit
6dffb4182a
@ -0,0 +1,16 @@
|
||||
const { platform, EOL } = require('os');
|
||||
const { execSync } = require('child_process');
|
||||
|
||||
const list_dir = () => {
|
||||
if(platform == 'linux') {
|
||||
return execSync("ls -lA | awk '{print $9}'")
|
||||
.toString()
|
||||
.split(EOL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const m = list_dir().forEach((l) => {
|
||||
if(l == '.git')
|
||||
console.log(true);
|
||||
});
|
Loading…
Reference in New Issue