Skip to content

Commit 8ca0b53

Browse files
committed
test: ci v2
1 parent 3bf69a0 commit 8ca0b53

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jobs:
3535
echo "No iOS simulator runtimes detected. Falling back to MIN_IOS=${MIN_IOS}"
3636
chosen="$MIN_IOS"
3737
else
38-
highest="${versions[-1]}"
38+
last_index=$(( ${#versions[@]} - 1 ))
39+
highest="${versions[$last_index]}"
3940
# chosen = max(MIN_IOS, highest)
4041
if [ "$(printf "%s\n%s\n" "$MIN_IOS" "$highest" | sort -V | tail -n 1)" = "$highest" ]; then
4142
chosen="$highest"

0 commit comments

Comments
 (0)