diff --git a/docs/batch-changes/batch-spec-cheat-sheet.mdx b/docs/batch-changes/batch-spec-cheat-sheet.mdx index 1e1b89ca..2f7e510b 100644 --- a/docs/batch-changes/batch-spec-cheat-sheet.mdx +++ b/docs/batch-changes/batch-spec-cheat-sheet.mdx @@ -14,9 +14,11 @@ on: steps: - run: | - for file in "${{ join repository.search_result_paths " " }}"; + IFS=$'\n' + files="${{ join repository.search_result_paths "\n" }}" + for file in $files; do - sed -i 's/OLD-VALUE/NEW-VALUE/g;' ${file} + sed -i 's/OLD-VALUE/NEW-VALUE/g;' "${file}" done container: alpine:3 ```