Skip to content

Commit a280744

Browse files
committed
fix: resolveAdbTarget returns 1 on CI (no devices), causing set -e to abort publish
1 parent c7e3348 commit a280744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function buildProject() {
126126
GENERATED_APK_FILE=$(find "$THIS_DIR/cgeDemo/build" -iname "*.apk" | grep -i "${ANDROID_BUILD_TYPE/assemble/}")
127127
echo "apk generated at: $GENERATED_APK_FILE"
128128

129-
resolveAdbTarget
129+
resolveAdbTarget || true
130130
if [[ -n "$GRADLEW_RUN_TASK" ]] && [[ ${#ADB_TARGET_ARGS[@]} -gt 0 || $(. "$ADB_COMMAND" devices | grep -v 'List' | grep -vE '^$' | grep $'\tdevice$' | wc -l | tr -d ' ') -ne 0 ]]; then
131131
if [[ "$GRADLEW_RUN_TASK" == "installRelease" ]]; then
132132
# release can not be installed directly. do adb install.

0 commit comments

Comments
 (0)