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

Commit

Permalink
fix for windows \r\n users
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpopelyshev committed Dec 28, 2017
1 parent 61db261 commit 8f76abb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/update-flash-refs.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ function packageRefs(includes, output, license) {
});
var content = '', included = {};
refs.split('\n').forEach(function (entry) {
if (entry.trim() === '') {
// lets trim it, git for windows can checkout \r\n
entry = entry.trim();
if (entry === '') {
return;
}
if (entry[0] !== '#') {
Expand Down

0 comments on commit 8f76abb

Please sign in to comment.