Skip to content

Commit

Permalink
Fix file modes when creating a zip (#454)
Browse files Browse the repository at this point in the history
The wildcard file mode needs to be evaluated first.
So that mor specific file modes can overwrite it.
  • Loading branch information
thsmi committed Nov 25, 2020
1 parent 72aa748 commit 8f83cfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gulp/gulpfile.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,12 @@ async function compressDirectory(zip, dir, options) {

let fileOptions = null;
if (options.permissions) {
if (options.permissions[metaPath])
fileOptions = { mode: options.permissions[metaPath] };

if (options.permissions["*"]) {
if (options.permissions["*"])
fileOptions = { mode: options.permissions["*"] };
}

if (options.permissions[metaPath])
fileOptions = { mode: options.permissions[metaPath] };
}

zip.addFile(realPath, metaPath, fileOptions);
Expand Down

0 comments on commit 8f83cfb

Please sign in to comment.