diff --git a/docs/batch-changes/batch-spec-cheat-sheet.mdx b/docs/batch-changes/batch-spec-cheat-sheet.mdx index 2f7e510ba..fe51a721b 100644 --- a/docs/batch-changes/batch-spec-cheat-sheet.mdx +++ b/docs/batch-changes/batch-spec-cheat-sheet.mdx @@ -31,10 +31,10 @@ on: steps: - run: | - cat /tmp/search-results | while read file; + while IFS= read -r file || [ -n "$file" ] do sed -i 's/OLD-VALUE/NEW-VALUE/g;' "${file}" - done + done < /tmp/search-results container: alpine:3 files: /tmp/search-results: ${{ join repository.search_result_paths "\n" }}