Skip to content

Commit

Permalink
feat(dos2unix): Log the fact line endings are being changed upon inst…
Browse files Browse the repository at this point in the history
…all.
  • Loading branch information
marcosscriven authored and iarna committed Nov 20, 2017
1 parent e99da7a commit e9f8a6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Expand Up @@ -117,7 +117,10 @@ function linkBins (pkg, folder, parent, gtop, opts, cb) {
}
if (er) return cb(er)
isHashbangFile(src).then((isHashbang) => {
if (isHashbang) return dos2Unix(src)
if (isHashbang) {
opts.log.silly('linkBins', 'Converting line endings of hashbang file:', src)
return dos2Unix(src)
}
}).then(() => {
if (!gtop) return cb()
var dest = path.resolve(binRoot, bin)
Expand Down

0 comments on commit e9f8a6f

Please sign in to comment.