Skip to content

Commit

Permalink
cli: make dirs in correct location (#11188)
Browse files Browse the repository at this point in the history
The previous behavior was writing empty directories to a separate
location when the plugin installer was being invoked from outside the
main kibana directory.
  • Loading branch information
epixa authored Apr 12, 2017
1 parent 766646c commit 918b418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli_plugin/install/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ export function extractArchive(archive, targetDir, extractPath) {
fileName = path.join(targetDir, fileName);
}

if (/\/$/.test(entry.fileName)) {
if (/\/$/.test(fileName)) {
// directory file names end with '/'
mkdirp(entry.fileName, function (err) {
mkdirp(fileName, function (err) {
if (err) {
return reject(err);
}
Expand Down

0 comments on commit 918b418

Please sign in to comment.