Skip to content

Commit

Permalink
chmod on install for mac and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmelsayed committed Mar 7, 2018
1 parent 67fac1a commit a9fb5f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Azure.Functions.Cli/npm/lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ https.get(url, function (response) {
var unzipStream = unzipper.Extract({
path: installPath
})
.on('close', () => installWorkers(installPath));
.on('close', () => {
installWorkers(installPath)
if (os.platform() === 'linux' || os.platform() === 'darwin') {
fs.chmodSync(`${installPath}/func`, 755);
}
});
response.pipe(unzipStream);
} else {
console.error(chalk.red('Error downloading zip file from ' + url));
Expand Down

0 comments on commit a9fb5f4

Please sign in to comment.