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
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslawpluta committed Mar 12, 2016
1 parent 6fc3f02 commit c061caa
Showing 1 changed file with 2 additions and 2 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, {mode: 484});
if (binDir) { mkdirp.sync(defaultBin, {mode: 484}); }
mkdirp.sync(dir);
if (binDir) { mkdirp.sync(defaultBin); }
filePath = path.join(dir, 'youtube-dl' + ((isWin) ? '.exe' : ''));
}

Expand Down

0 comments on commit c061caa

Please sign in to comment.