diff --git a/README.md b/README.md index 3f4401bf..f12418b6 100644 --- a/README.md +++ b/README.md @@ -64,8 +64,8 @@ Consider using one of the other formats if that's the case. with: format: 'json' - run: | - readarray -t removed_files <<<"$(jq -r '.[]' <<<'${{ steps.files.outputs.removed }}')" - for removed_file in ${removed_files[@]}; do + readarray -t removed_files < <(jq -r '.[]' <<<'${{ steps.files.outputs.removed }}') + for removed_file in "${removed_files[@]}"; do echo "Do something with this ${removed_file}." done ```