From 217b14aa4d38036d03265ec36ad27ef2d1b8abca Mon Sep 17 00:00:00 2001 From: Joel Capitao Date: Wed, 26 Jun 2024 14:17:51 +0200 Subject: [PATCH] Ensure repo is not available before pulling --- scripts/clone-operator-repo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/clone-operator-repo.sh b/scripts/clone-operator-repo.sh index c1dfd6b..c303f39 100755 --- a/scripts/clone-operator-repo.sh +++ b/scripts/clone-operator-repo.sh @@ -65,6 +65,7 @@ function git_clone_checkout { pushd ${OPERATOR_BASE_DIR} + rm -rf ${operator}-operator${ALT_CHECKOUT:+-$ALT_CHECKOUT} echo "Cloning repo: git clone ${git_opts} ${branch} ${repo} ${operator}-operator${ALT_CHECKOUT:+-$ALT_CHECKOUT}" git clone ${git_opts} ${branch} ${repo} ${operator}-operator${ALT_CHECKOUT:+-$ALT_CHECKOUT} if [ -n "${hash}" ]; then