Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3510092
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
901 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/native/android/app/bash/detect_abis.sh b/native/android/app/bash/detect_abis.sh
index 85b6d0000..59ff9ccd8 100755
--- a/native/android/app/bash/detect_abis.sh
+++ b/native/android/app/bash/detect_abis.sh
@@ -1,26 +1,20 @@
#!/usr/bin/env bash
set -e
IDS=$(adb devices -l | tail -n +2 | cut -d ' ' -f 1)
ABIS=()
for ID in ${IDS}
do
ABI=$(adb -s "$ID" shell getprop ro.product.cpu.abi)
-
- found=false
- for ABI_ in "${ABIS[@]}"
- do
- # check if we already have this ABI
- if [[ "${ABI} " == "${ABI_}" ]]; then
- found=true
- break
- fi
- done
- if [[ ! $found ]]; then
- ABIS+=("${ABI} ")
+ # check if we already have this ABI
+ # shellcheck disable=SC2076
+ if [[ " ${ABIS[*]} " =~ " ${ABI} " ]]; then
+ continue
fi
+ # shellcheck disable=SC2179
+ ABIS+="${ABI} "
done
-
-echo "${ABIS[@]}"
+# shellcheck disable=SC2128
+echo "$ABIS"
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Dec 23, 11:44 AM (19 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2690827
Default Alt Text
(901 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment