diff --git a/native/android/app/bash/detect_abis.sh b/native/android/app/bash/detect_abis.sh --- a/native/android/app/bash/detect_abis.sh +++ b/native/android/app/bash/detect_abis.sh @@ -9,10 +9,13 @@ do ABI=$(adb -s "$ID" shell getprop ro.product.cpu.abi) # check if we already have this ABI - if [[ " ${ABIS[*]} " =~ " ${ABI} " ]]; then - continue - fi - ABIS+="${ABI} " + for ABI_ in "${ABIS[@]}" + do + if [[ "${ABI} " == "${ABI_}" ]]; then + continue + fi + done + ABIS+=("${ABI} ") done -echo "$ABIS" +echo "${ABIS[@]}"