From 90a711de0dc94e073a1c6aaadea3d4fce233b35a Mon Sep 17 00:00:00 2001 From: George Taylor Date: Mon, 18 Nov 2024 16:06:08 +0000 Subject: [PATCH] Update migrate-s3.yaml --- .github/workflows/migrate-s3.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/migrate-s3.yaml b/.github/workflows/migrate-s3.yaml index 6e00502..0dc326f 100644 --- a/.github/workflows/migrate-s3.yaml +++ b/.github/workflows/migrate-s3.yaml @@ -69,8 +69,10 @@ jobs: # remove all spaces and put one comma between prefixes cleaned_prefixes=$(echo $prefixes | tr -s '[:space:]' ',' | sed 's/[,/]*$//') - # remove `contentstore.deleted/` from cleaned_prefixes - cleaned_prefixes=$(echo $cleaned_prefixes | sed 's/contentstore.deleted,//') + # remove `contentstore.deleted/` from cleaned_prefixes with comma if in list + cleaned_prefixes=$(echo $cleaned_prefixes | sed 's/contentstore.deleted,//')\ + # remove `contentstore.deleted` from cleaned_prefixes if at the end of the list + cleaned_prefixes=$(echo $cleaned_prefixes | sed 's/contentstore.deleted//') DIRS="" IFS=','