From 5d358d2079bf2dc9465348edb141c12ea01b381a Mon Sep 17 00:00:00 2001 From: zugdev Date: Fri, 8 Nov 2024 18:23:18 -0300 Subject: [PATCH] test: try -rf for cp --- .github/workflows/sync-template.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sync-template.yml b/.github/workflows/sync-template.yml index 44b8c2b..dcb7fbd 100644 --- a/.github/workflows/sync-template.yml +++ b/.github/workflows/sync-template.yml @@ -57,20 +57,12 @@ jobs: # Copy whitelist files from template for file in $WHITELIST_FILES; do - if [[ -d "template-repo/$file" ]]; then - cp -r "template-repo/$file" "$file" - else - cp -f "template-repo/$file" "$file" - fi + cp -rf "template-repo/$file" "$file" done # Copy additional files from template (if any were specified) for file in "${additional_files[@]}"; do - if [[ -d "template-repo/$file" ]]; then - cp -r "template-repo/$file" "$file" - else - cp -f "template-repo/$file" "$file" - fi + cp -rf "template-repo/$file" "$file" done # Prepare a formatted file list for the PR body