From 3090ae2513b66fd0ec04af30b46ea21bd33bfd37 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 9 Mar 2024 13:17:05 -0500 Subject: [PATCH] Remove a target dir if it exists Helps with potential tag overwrites should they occur. --- .github/workflows/app-publish.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/app-publish.yaml b/.github/workflows/app-publish.yaml index f7232b034..358679a6c 100644 --- a/.github/workflows/app-publish.yaml +++ b/.github/workflows/app-publish.yaml @@ -92,6 +92,9 @@ jobs: envs: JELLYFIN_VERSION script_stop: true script: | + if [ -d "/srv/repository/main/client/android/versions/v${{ env.JELLYFIN_VERSION }}" ] && [ -n "${{ env.JELLYFIN_VERSION }}" ]; then + sudo rm -r /srv/repository/main/client/android/versions/v${{ env.JELLYFIN_VERSION }} + fi sudo mv /srv/incoming/android/v${{ env.JELLYFIN_VERSION }} /srv/repository/main/client/android/versions/v${{ env.JELLYFIN_VERSION }} cd /srv/repository/main/client/android; sudo rm -rf *.apk version.txt;