From cd3162eaf35db9c41a9870091e67864092aa3efd Mon Sep 17 00:00:00 2001 From: Mate Majoros Date: Mon, 12 Jan 2026 12:02:19 +0200 Subject: [PATCH] escaping fixed --- .github/workflows/remove-site.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/remove-site.yml b/.github/workflows/remove-site.yml index 65d5e8c5..1334c41f 100644 --- a/.github/workflows/remove-site.yml +++ b/.github/workflows/remove-site.yml @@ -181,11 +181,10 @@ jobs: ssh ${{ env.HETZNER_USER }}@${{ env.HETZNER_HOST }} " cd ${{ env.DEPLOY_PATH }} - # Remove the backup files (there could be multiple same site name backup folders with incremented numbers at the end in case of multiple removals) - docker compose exec -T -e SITE_NAME="${{ github.event.inputs.site_name }}" backend bash -c ' + docker compose exec -T backend bash -c ' cd /home/frappe/frappe-bench/archived/sites/ - rm -rf "${SITE_NAME}" "${SITE_NAME}"[0-9]* 2>/dev/null || true - echo "Removed: ${SITE_NAME} and ${SITE_NAME}[0-9]*" + rm -rf \"${{ github.event.inputs.site_name }}\" \"${{ github.event.inputs.site_name }}\"[0-9]* 2>/dev/null || true + echo \"Removed: ${{ github.event.inputs.site_name }} and ${{ github.event.inputs.site_name }}[0-9]*\" ' "