Skip to content

Commit

Permalink
Ignore blank lines when comparing docs
Browse files Browse the repository at this point in the history
Signed-off-by: Dibyo Mukherjee <[email protected]>
  • Loading branch information
dibyom authored and tekton-robot committed Jan 16, 2020
1 parent d7ae0f7 commit d13a746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/update-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ for file in ${doc_files};do
if [[ ${DIFF} == "true" ]];then
# Check if up to date
set +o errexit
diff ${file} ${new_file}
diff -B ${file} ${new_file}
if [[ $? != 0 ]];then
echo 'Run `./hack/update-docs.sh` to update the docs'
exit 1
Expand All @@ -106,4 +106,4 @@ for file in ${doc_files};do
rm ${file}
mv ${new_file} ${file}
fi
done
done

0 comments on commit d13a746

Please sign in to comment.