Update auto-commit.js
Browse files- auto-commit.js +1 -1
auto-commit.js
CHANGED
@@ -19,7 +19,7 @@ function loop() {
|
|
19 |
const dirs = fs.readdirSync(root)
|
20 |
for (let dir of dirs) {
|
21 |
const cwd = path.join(root, dir)
|
22 |
-
if (fs.existsSync(path.join(
|
23 |
console.log('auto commit', cwd)
|
24 |
exec(`git add -A`, { cwd })
|
25 |
exec(`git commit -am "[WIP] auto commit"`, { cwd })
|
|
|
19 |
const dirs = fs.readdirSync(root)
|
20 |
for (let dir of dirs) {
|
21 |
const cwd = path.join(root, dir)
|
22 |
+
if (fs.existsSync(path.join(cwd, '.git/config'))) {
|
23 |
console.log('auto commit', cwd)
|
24 |
exec(`git add -A`, { cwd })
|
25 |
exec(`git commit -am "[WIP] auto commit"`, { cwd })
|