From 55c02b184326440354d4e4c6e2364c7793ed4d35 Mon Sep 17 00:00:00 2001 From: Mate Majoros Date: Tue, 13 Jan 2026 12:04:08 +0200 Subject: [PATCH] quote issues fixed --- .github/workflows/restore-site.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/restore-site.yml b/.github/workflows/restore-site.yml index 453cec11..165a8bb7 100644 --- a/.github/workflows/restore-site.yml +++ b/.github/workflows/restore-site.yml @@ -253,26 +253,26 @@ jobs: echo \"Restoring from: \$DB_FILE\" - # Construct command dynamically to handle missing file backups - CMD=\"bench --site ${{ github.event.inputs.site_name }} --force restore '\$DB_FILE'\" + # Construct command using array to handle arguments safely + ARGS=(bench --site ${{ github.event.inputs.site_name }} --force restore \"\$DB_FILE\") if [ -n \"\$PUBLIC_FILES\" ]; then echo \"With public files: \$PUBLIC_FILES\" - CMD=\"\$CMD --with-public-files '\$PUBLIC_FILES'\" + ARGS+=(--with-public-files \"\$PUBLIC_FILES\") else echo \"⚠️ No public files backup found, skipping files restore\" fi if [ -n \"\$PRIVATE_FILES\" ]; then echo \"With private files: \$PRIVATE_FILES\" - CMD=\"\$CMD --with-private-files '\$PRIVATE_FILES'\" + ARGS+=(--with-private-files \"\$PRIVATE_FILES\") else echo \"⚠️ No private files backup found, skipping private files restore\" fi # Restore the database - echo \"Running: \$CMD\" - eval \"\$CMD\" + echo \"Running: \${ARGS[*]}\" + \"\${ARGS[@]}\" echo \"✅ Database restored successfully\" '