Skip to content

Commit

Permalink
Use ES5 octal literal since this already doesn't run in old Node vers…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
Jimbly committed May 8, 2020
1 parent f511cad commit e04a1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = (filename, options) => {
mtime: options.modifiedTime || file.stat.mtime || new Date(),
// Set executable bit on directories if any other bits are set for that user/group/all
// Fixes creating unusable zip files on platforms that do not use an executable bit
mode: file.stat.mode | (((file.stat.mode >> 1) | (file.stat.mode >> 2)) & 73) // 73 = 0111
mode: file.stat.mode | (((file.stat.mode >> 1) | (file.stat.mode >> 2)) & 0o111)
});
} else {
const stat = {
Expand Down

0 comments on commit e04a1f8

Please sign in to comment.