Skip to content

Commit dea64b9

Browse files
committed
Test 4, funnel array through env vars
1 parent 20c9922 commit dea64b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/hil-library-test.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,11 @@ jobs:
120120
cd /opt/runner_support/
121121
122122
cd /opt/runner_support/
123-
declare -a serials=$(echo $(./py_checkusb.py --type ${{ env.library }} --list serial --json) | jq ".\"${{ env.library }}\"[]" --compact-output )
123+
readarray -t serials < <$(echo $(./py_checkusb.py --type ${{ env.library }} --list serial --json) | jq ".\"${{ env.library }}\"[]" --compact-output )
124124
echo "Serials: " $serials
125125
echo $serials[0]
126126
echo $serials[1]
127127
128-
129128
for serial in "${serials[@]}"; do
130129
echo "Serial: $serial"
131130
done

0 commit comments

Comments
 (0)