Skip to content

Commit 18311b8

Browse files
sbryngelsonclaude
andcommitted
ci: fix shellcheck SC2162 - use read -r in while loops
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent aa21620 commit 18311b8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
- name: Cancel SLURM Jobs
128128
if: cancelled()
129129
run: |
130-
find . -name "*.slurm_job_id" | while read f; do
130+
find . -name "*.slurm_job_id" | while read -r f; do
131131
job_id=$(cat "$f")
132132
echo "Cancelling SLURM job $job_id"
133133
scancel "$job_id" 2>/dev/null || true

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ jobs:
261261
- name: Cancel SLURM Jobs
262262
if: cancelled()
263263
run: |
264-
find . -name "*.slurm_job_id" | while read f; do
264+
find . -name "*.slurm_job_id" | while read -r f; do
265265
job_id=$(cat "$f")
266266
echo "Cancelling SLURM job $job_id"
267267
scancel "$job_id" 2>/dev/null || true
@@ -346,7 +346,7 @@ jobs:
346346
- name: Cancel SLURM Jobs
347347
if: cancelled()
348348
run: |
349-
find . -name "*.slurm_job_id" | while read f; do
349+
find . -name "*.slurm_job_id" | while read -r f; do
350350
job_id=$(cat "$f")
351351
echo "Cancelling SLURM job $job_id"
352352
scancel "$job_id" 2>/dev/null || true

0 commit comments

Comments
 (0)