From 79824be91766a084e10f9bce3d90ad6bb5ab6294 Mon Sep 17 00:00:00 2001 From: Gabe Torres <69164745+gabtorre@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:34:26 -0800 Subject: [PATCH] Update batch spec looping example --- docs/batch-changes/batch-spec-cheat-sheet.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/batch-changes/batch-spec-cheat-sheet.mdx b/docs/batch-changes/batch-spec-cheat-sheet.mdx index 1e1b89ca5..2f7e510ba 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 ```