Skip to content

Commit 6be791d

Browse files
committed
fix(ci): use readarray to not make an oopsie
1 parent aeb3c07 commit 6be791d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
echo "Checking for build-success-$crate_system"
145145
if [[ ${build_success_files[*]} =~ build-success-$crate_system ]]; then
146146
echo "Found build-success-$crate_system"
147-
split=("${crate_system//-/ }")
147+
readarray -d '-' -t split <<< "$crate_system"
148148
split_len=${#split[@]}
149149
crate=$(IFS=$'-' ; echo "${split[*]:0:$split_len-2}")
150150
system=$(IFS=$'-' ; echo "${split[*]:$split_len-2:2}")

0 commit comments

Comments
 (0)