From a2da4db909ce1d86fd2765276051c524f97f833c Mon Sep 17 00:00:00 2001 From: abikouo Date: Tue, 3 May 2022 17:29:16 +0200 Subject: [PATCH] Remove dir before install --- ci/downstream.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/downstream.sh b/ci/downstream.sh index ee947e6..b2741f1 100755 --- a/ci/downstream.sh +++ b/ci/downstream.sh @@ -186,6 +186,8 @@ f_copy_collection_to_working_dir() cp "${_build_dir}"/*.tar.gz ./ # Install downstream collection into provided path if [[ -n ${INSTALL_DOWNSTREAM_COLLECTION_PATH} ]]; then + rm -fr "${INSTALL_DOWNSTREAM_COLLECTION_PATH}" + mkdir "${INSTALL_DOWNSTREAM_COLLECTION_PATH}" f_log_info "Install built collection *.tar.gz into ${INSTALL_DOWNSTREAM_COLLECTION_PATH}" ansible-galaxy collection install -p "${INSTALL_DOWNSTREAM_COLLECTION_PATH}" "${_build_dir}"/*.tar.gz fi