Don't try to run hack/verify-staging-* on dirty repository

This commit is contained in:
Dr. Stefan Schimanski
2017-03-08 13:56:34 +01:00
parent fa0387c9fe
commit c128e4686a
4 changed files with 17 additions and 102 deletions

View File

@@ -59,10 +59,10 @@ BASH_TARGETS="
update-swagger-spec
update-openapi-spec
update-api-reference-docs
update-bazel
update-federation-openapi-spec
verify-staging-client-go
verify-staging-godeps"
update-staging-client-go
update-staging-godeps
update-bazel"
for t in $BASH_TARGETS
do
@@ -70,9 +70,6 @@ do
if $SILENT ; then
if ! bash "$KUBE_ROOT/hack/$t.sh" 1> /dev/null; then
echo -e "${color_red}Running $t FAILED${color_norm}"
if [[ $t == "verify"* ]]; then
echo -e "${color_red}Run ./hack/update-all-staging.sh to fix it"
fi
if ! $ALL; then
exit 1
fi
@@ -80,9 +77,6 @@ do
else
if ! bash "$KUBE_ROOT/hack/$t.sh"; then
echo -e "${color_red}Running $t FAILED${color_norm}"
if [[ $t == "verify"* ]]; then
echo -e "${color_red}Run ./hack/update-all-staging.sh to fix it"
fi
if ! $ALL; then
exit 1
fi
@@ -91,3 +85,4 @@ do
done
echo -e "${color_green}Update scripts completed successfully${color_norm}"