Skip to content

Commit

Permalink
Merge 5cf6e5f into 6faa677
Browse files Browse the repository at this point in the history
  • Loading branch information
xgeek-net committed Jun 20, 2019
2 parents 6faa677 + 5cf6e5f commit 70c2156
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -34,7 +34,7 @@ install:
script:
- NODE_ENV=test npm run coveralls
after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
before_deploy:
- brew update
- brew install bower
Expand Down
28 changes: 27 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "pipeline",
"description": "Be less busy, less mistake in Salesforce metadata deploy",
"version": "2.0.0",
"version": "2.0.1",
"private": false,
"main": "src/main.js",
"dependencies": {
Expand Down Expand Up @@ -64,6 +64,7 @@
"devDependencies": {
"app-builder-lib": "^20.43.0",
"chai": "^4.2.0",
"coveralls": "^3.0.4",
"electron": "3.1.9",
"electron-builder": "^20.43.0",
"electron-builder-squirrel-windows": "^20.43.0",
Expand Down
4 changes: 3 additions & 1 deletion src/class/Metadata.js
Expand Up @@ -71,7 +71,9 @@ class Metadata {
const pipelinePath = path.join(userDataPath, 'pipeline', pid, 'metadata');
const filePath = path.join(pipelinePath, filename);
const filePathWithoutName = path.dirname(filePath);
fse.ensureDirSync(filePathWithoutName, '0777');
if(!fse.pathExistsSync(filePathWithoutName)) {
fse.ensureDirSync(filePathWithoutName, '0777');
}
return filePath
}

Expand Down
4 changes: 3 additions & 1 deletion src/class/SfdcApi.js
Expand Up @@ -651,7 +651,9 @@ class SfdcApi {
});
unzipper.on('extract', function (log) {
// console.log('[SFDC]Finished extracting' + log);
fse.ensureDirSync(sourceZipPath, '0777');
if(fse.pathExistsSync(sourceZipPath)) {
fse.removeSync(sourceZipPath);
}
return callback(null, true);
});
unzipper.extract({
Expand Down

0 comments on commit 70c2156

Please sign in to comment.