Skip to content

Commit

Permalink
Update migrate-s3.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed Jan 7, 2025
1 parent a8806db commit 5c25e33
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/migrate-s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,12 @@ 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 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//')
# None occurs when a file is at the root of the bucket or level 1 directory
# remove None from cleaned_prefixes if at the end of the list
cleaned_prefixes=$(echo $cleaned_prefixes | sed 's/None//')
# remove None from cleaned_prefixes with comma if in list
cleaned_prefixes=$(echo $cleaned_prefixes | sed 's/None,//')
# remove None from cleaned_prefixes if at the end of the list
cleaned_prefixes=$(echo $cleaned_prefixes | sed 's/None//')
DIRS=""
IFS=','
Expand Down

0 comments on commit 5c25e33

Please sign in to comment.