From 509782e78b6b9d03f5245056ca7e3dac49e695ba Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Thu, 21 Feb 2019 13:50:00 +0100 Subject: [PATCH] add hack/tree_status.sh This script is meant to be used in CI after a `make vendor` run. It's sole purpose is to execute a `git status --porcelain` and fail with the list of files reported by it. Signed-off-by: Valentin Rothberg --- hack/tree_status.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 hack/tree_status.sh diff --git a/hack/tree_status.sh b/hack/tree_status.sh new file mode 100755 index 00000000..78fb4c6a --- /dev/null +++ b/hack/tree_status.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +STATUS=$(git status --porcelain) +if [[ -z $STATUS ]] +then + echo "tree is clean" +else + echo "tree is dirty, please commit all changes and sync the vendor.conf" + echo "" + echo "$STATUS" + exit 1 +fi