Browse Source

Elxr fixes

production
samuel 3 years ago
parent
commit
173975efda
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      index.js

+ 3
- 3
index.js View File

var perform_git_remove = (dir) => { var perform_git_remove = (dir) => {
op['is-git-repo'](dir).then((code) => { op['is-git-repo'](dir).then((code) => {
// console.log(code) // console.log(code)
if (code) {
// if (code) {
nodeShellExec('git', ['remote', 'get-url', remotename], { cwd: dir.name, stdio: 'ignore' }).then(() => { nodeShellExec('git', ['remote', 'get-url', remotename], { cwd: dir.name, stdio: 'ignore' }).then(() => {
any(serial_perform_git_remove(dir.name).map(x)) any(serial_perform_git_remove(dir.name).map(x))
}) })
.catch((e) => { .catch((e) => {
console.log('skipped : ' + dir.name + ', reason : No remote named origin') console.log('skipped : ' + dir.name + ', reason : No remote named origin')
}) })
}
// }
// else console.log('Skipped : Not a Git Repo : ' + dir.name) // else console.log('Skipped : Not a Git Repo : ' + dir.name)
}).catch((e) => { }).catch((e) => {
// console.log('Failed : ' + dir.name)
console.log('Failed : ' + dir.name)
}) })
} }



Loading…
Cancel
Save