Skip to content

Commit

Permalink
makerelease: Omit empty files in contents check
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Buesch <[email protected]>
  • Loading branch information
mbuesch committed Jan 2, 2016
1 parent ce50f4c commit 7d17837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions maintenance/makerelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ __check_text_encoding()
{
local file="$1"

[ x"$(du -b "$file" | cut -f1)" = x"0" ] && return

# Check CR/LF
file -L "$file" | grep -qe 'CRLF line terminators' || {
die "ERROR: '$file' is not in DOS format."
Expand Down

0 comments on commit 7d17837

Please sign in to comment.