From e2b9aeb6ddf3f65824923109b5fecf6b0c95faf4 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Tue, 4 Jun 2019 20:17:00 +0300 Subject: [PATCH] Build: Force CRLF error --- macbuild.tool | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/macbuild.tool b/macbuild.tool index dcdb6be9..80246693 100755 --- a/macbuild.tool +++ b/macbuild.tool @@ -23,6 +23,11 @@ updaterepo() { fi pushd "$2" >/dev/null git pull + sym=$(find . -not -type d -exec file "{}" ";" | grep CRLF) + if [ "${sym}" != "" ]; then + echo "Repository $1 named $2 contains CRLF line endings" + exit 1 + fi popd >/dev/null } @@ -136,6 +141,12 @@ fi if [ ! -f UDK/UDK.ready ]; then rm -rf UDK + + sym=$(find . -not -type d -exec file "{}" ";" | grep CRLF) + if [ "${sym}" != "" ]; then + echo "Repository CRLF line endings" + exit 1 + fi fi updaterepo "https://github.com/tianocore/edk2" UDK UDK2018 || exit 1