diff --git a/hack/build-crd-schema-checker.sh b/hack/build-crd-schema-checker.sh index 12bf3be9a..e7585662e 100755 --- a/hack/build-crd-schema-checker.sh +++ b/hack/build-crd-schema-checker.sh @@ -5,6 +5,7 @@ if [ -f "$INSTALL_DIR/crd-schema-checker" ]; then exit 0 fi +rm -rf "$INSTALL_DIR/git-tmp" mkdir -p "$INSTALL_DIR/git-tmp" git clone https://github.com/openshift/crd-schema-checker.git \ -b "$CRD_SCHEMA_CHECKER_VERSION" "$INSTALL_DIR/git-tmp"