Skip to content

Commit

Permalink
Allow darwin in the filename for that platform (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
styks1987 authored and leo committed Feb 26, 2019
1 parent b2b87a9 commit f87970a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { extname } = require('path')
module.exports = fileName => {
const extension = extname(fileName).split('.')[1]

if (fileName.includes('mac') && extension === 'zip') {
if ((fileName.includes('mac') || fileName.includes('darwin')) && extension === 'zip') {
return 'darwin'
}

Expand Down

0 comments on commit f87970a

Please sign in to comment.