Skip to content

Commit

Permalink
Fix #49 - Suffix outdir with uuid.v4
Browse files Browse the repository at this point in the history
  • Loading branch information
trufae committed Sep 22, 2016
1 parent 5363b62 commit 2612df2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion session.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const path = require('path');
const uuid = require('uuid');
const fs = require('fs-extra');
const walk = require('fs-walk');
const rimraf = require('rimraf');
Expand Down Expand Up @@ -616,7 +617,7 @@ module.exports = class ApplesignSession {
setFile (name) {
if (typeof name === 'string') {
this.config.file = path.resolve(name);
this.config.outdir = this.config.file + '.d';
this.config.outdir = this.config.file + '.' + uuid.v4();
if (!this.config.outfile) {
this.setOutputFile(getResignedFilename(this.config.file));
}
Expand Down

0 comments on commit 2612df2

Please sign in to comment.