Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Newer node version on Windows was choking with error when empty array…
Browse files Browse the repository at this point in the history
…: `TypeError: "file" argument must be a non-empty string`

Auditors: @darkdh
  • Loading branch information
bsclifton committed Mar 11, 2018
1 parent b780074 commit c8e9925
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/electronBuilderHack.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ if (isDarwin) {
)
}

execute(cmds, env, console.log.bind(null, 'done'))
if (cmds.length > 0) {
execute(cmds, env, console.log.bind(null, 'done'))
}

1 comment on commit c8e9925

@darkdh
Copy link
Member

@darkdh darkdh commented on c8e9925 Mar 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.