Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
permission change on bin cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslawpluta committed Mar 12, 2016
1 parent c061caa commit 6912150
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ function createBase(binDir) {
'use strict';
isWin = (process.platform === 'win32' || process.env.NODE_PLATFORM === 'windows') ? true : false;
dir = (binDir) ? binDir : defaultBin;
mkdirp.sync(dir);
if (binDir) { mkdirp.sync(defaultBin); }
mkdirp.sync(dir, {mode: 755});
if (binDir) { mkdirp.sync(defaultBin, {mode: 755}); }
filePath = path.join(dir, 'youtube-dl' + ((isWin) ? '.exe' : ''));
}

Expand Down
2 changes: 1 addition & 1 deletion test/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ vows.describe('download').addBatch({
'subtitles were downloaded': function(err, files) {
'use strict';
if (err) { throw err; }
console.dir(files);

assert.equal(files[0], subtitleFile);
assert.isTrue(fs.existsSync(path.join(__dirname, subtitleFile)));
fs.unlinkSync(path.join(__dirname, subtitleFile));
Expand Down

0 comments on commit 6912150

Please sign in to comment.