Skip to content

Commit

Permalink
hack/ci/check_mods: simplify
Browse files Browse the repository at this point in the history
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Apr 18, 2023
1 parent 88f3fbc commit 1839a3c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions hack/ci/check_mods.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@

set -e

exit_code=0

make vendor
git diff --exit-code go.mod go.sum || exit_code=$?

if [ ${exit_code} -eq 0 ]; then
exit 0
if ! git diff --exit-code go.mod go.sum; then
echo "please run \`make mod\` and check in the changes"
exit 1
fi

echo "please run \`make mod\` and check in the changes"
exit ${exit_code}

0 comments on commit 1839a3c

Please sign in to comment.