File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -67,16 +67,22 @@ if [ $# -eq 0 ]; then
6767fi
6868
6969if [[ " $TEST " == " --preview" || " $TEST " == " -p" ]] && [[ -z " $DISTRO " ]]; then
70+ # Clean output folder
71+ rm -rf ./_preview/
7072 echo " "
7173 echo " 🚧 Building with openshift-enterprise distro..."
7274 $CONTAINER_ENGINE run --rm -it -v " $( pwd) " :${CONTAINER_WORKDIR} :Z $CONTAINER_IMAGE asciibinder build -d " $DISTRO "
7375
7476elif [[ " $TEST " == " --preview" || " $TEST " == " -p" ]] && [[ -n " $DISTRO " ]]; then
77+ # Clean output folder
78+ rm -rf ./_preview/
7579 echo " "
7680 echo " 🚧 Building $DISTRO distro..."
7781 $CONTAINER_ENGINE run --rm -it -v " $( pwd) " :${CONTAINER_WORKDIR} :Z $CONTAINER_IMAGE asciibinder build -d " $DISTRO "
7882
7983elif [[ " $TEST " == " --validate" || " $TEST " == " -v" ]]; then
84+ # Clean output folder
85+ rm -rf ./drupal_build/
8086 echo " "
8187 echo " 🚧 Validating the docs..."
8288 $CONTAINER_ENGINE run --rm -it -v " $( pwd) " :${CONTAINER_WORKDIR} :Z $CONTAINER_IMAGE sh -c ' scripts/check-asciidoctor-build.sh && python3 build_for_portal.py --distro ' ${DISTRO} ' --product "' " ${PRODUCT_NAME} " ' " --version ' ${VERSION} ' --no-upstream-fetch && python3 makeBuild.py'
You can’t perform that action at this time.
0 commit comments