Permalink
Browse files

debug for issue #712

  • Loading branch information...
scriptPilot committed Jan 10, 2018
1 parent 452d1b6 commit 4bb6d4907bae67482363ed3abab7762783e2725b
Showing with 4 additions and 1 deletion.
  1. +4 −1 scripts/cordova.js
View
@@ -62,10 +62,13 @@ let wwwFolder = abs(binDir, 'www')
// Define steps
let deleteFiles = function (files, callback) {
if (Array.isArray(files) && files.length > 0) {
fs.remove(abs(binDir, files.shift()), function (err) {
const fileToDelete = files.shift()
fs.remove(abs(binDir, fileToDelete), function (err) {
if (err) {
env.debug(`Failed to delete file "${fileToDelete}"`)
alert('Failed to remove files in Cordova folder.', 'issue')
} else {
env.debug(`Deleted file "${fileToDelete}"`)
deleteFiles(files, callback)
}
})

0 comments on commit 4bb6d49

Please sign in to comment.