From 533404d950bae6a141a47ff0bb971c9f54421dba Mon Sep 17 00:00:00 2001 From: Sakib Rahman Date: Fri, 6 Oct 2023 21:43:05 -0500 Subject: [PATCH] Check reco folder exists before deleting (#46) --- .github/workflows/nightly-updates.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-updates.yml b/.github/workflows/nightly-updates.yml index 3208b578..0715a446 100644 --- a/.github/workflows/nightly-updates.yml +++ b/.github/workflows/nightly-updates.yml @@ -16,7 +16,7 @@ jobs: - name: Search the database and save the file names as a list shell: bash run: | - rm -R ./docs/RECO/ + if [ -d ./docs/RECO ]; then rm -rf ./docs/RECO; fi mc config host add S3 ${S3_HOST} ${S3_ACCESS_KEY} ${S3_SECRET_KEY} chmod +x ./docs/_data/list_S3.sh ./docs/_data/list_S3.sh > ./docs/_data/s3_content.yml @@ -45,7 +45,7 @@ jobs: shell: bash run: | rm ./docs/_data/s3_content.yml - rm -R ./docs/RECO/ + if [ -d ./docs/RECO ]; then rm -rf ./docs/RECO; fi mkdir ./docs/RECO/ - name: Download s3_content uses: actions/download-artifact@v3