Skip to content

Commit

Permalink
fix: fix typo and fix globbing
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Wendel <[email protected]>
  • Loading branch information
KwadFan committed Jan 14, 2024
1 parent 4682587 commit c23c2f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,15 @@ jobs:
read -a SBC_ARRAY <<< "${JSON_SUPPORTED_SBC}"
json_array="["
for sbc in "${SBC_ARRAY[@]}""; do
for sbc in "${SBC_ARRAY[@]}"; do
json_array+="\"${sbc}\""
if [[ $sbc != ${SBC_ARRAY[-1]} ]]; then
if [[ "${sbc}" != "${SBC_ARRAY[-1]}" ]]; then
json_array+=","
fi
done
json_array+="]"
echo "supported_sbc=${json_array}" >> $GITHUB_OUTPUT
echo "Debug: Output: ${json_array}"
- name: Generate JSON
id: json
Expand Down

0 comments on commit c23c2f0

Please sign in to comment.