Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32598980
D4851.1767428140.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
765 B
Referenced Files
None
Subscribers
None
D4851.1767428140.diff
View Options
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
@@ -8,13 +8,16 @@
for ID in ${IDS}
do
ABI=$(adb -s "$ID" shell getprop ro.product.cpu.abi)
- # check if we already have this ABI
- # shellcheck disable=SC2076
- if [[ " ${ABIS[*]} " =~ " ${ABI} " ]]; then
- continue
+ # Check if this ABI is already in ABIS
+ found=false
+ for e in "${ABIS[@]}"; do
+ if [[ "${e}" == "${ABI}" ]]; then
+ found=true
+ break
+ fi
+ done
+ if [[ "$found" = "false" ]]; then
+ ABIS+=("${ABI}")
fi
- # shellcheck disable=SC2179
- ABIS+="${ABI} "
done
-# shellcheck disable=SC2128
-echo "$ABIS"
+echo "${ABIS[@]}"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 3, 8:15 AM (7 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5878671
Default Alt Text
D4851.1767428140.diff (765 B)
Attached To
Mode
D4851: [native] Clean up `detect_abis.sh`
Attached
Detach File
Event Timeline
Log In to Comment