Merge pull request #3614 from kiwix/Fixes-#3613

Fix potential infinite loop in bash script
This commit is contained in:
Kelson 2023-12-19 04:47:38 +01:00 committed by GitHub
commit e693dd544a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,8 @@ do
adb logcat -c
adb logcat ./*:E -v color &
./gradlew clean
retry=$(( $retry + 1 ))
if [ $retry == 3 ]; then
retry=$(( retry + 1 ))
if [ $retry -eq 3 ]; then
adb exec-out screencap -p >screencap.png
exit 1
fi