From b7d8b0f904488375733cde5fc8b3e20b87f80573 Mon Sep 17 00:00:00 2001 From: Nick Miyake Date: Mon, 25 Nov 2019 10:43:20 -0800 Subject: [PATCH] Simplify --- azure-pipelines.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 896cf15b..86a2ca5d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -81,16 +81,8 @@ steps: - bash: | git config --global core.autocrlf false go mod tidy - if [ ! -z "$(git status --porcelain go.mod)" ]; then - printf "go.mod has modifications\n" - git diff go.mod - exit 1 - fi - if [ ! -z "$(git status --porcelain go.sum)" ]; then - printf "go.sum has modifications\n" - git diff go.sum - exit 1 - fi + diff -u <(echo -n) <(git diff go.mod) + diff -u <(echo -n) <(git diff go.sum) workingDirectory: '$(modulePath)' displayName: Ensure that module definition and checksums are correct