From 255d64e3dcb2a10c28d37d226d1a8b2ee7858404 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 15 Aug 2024 22:12:34 -0300 Subject: [PATCH] fix(cli): actually check if there are multiple android devices connected (#10642) --- tooling/cli/src/mobile/android/android_studio_script.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/cli/src/mobile/android/android_studio_script.rs b/tooling/cli/src/mobile/android/android_studio_script.rs index 169d3fbf56ee..407a78d967fa 100644 --- a/tooling/cli/src/mobile/android/android_studio_script.rs +++ b/tooling/cli/src/mobile/android/android_studio_script.rs @@ -110,7 +110,7 @@ pub fn command(options: Options) -> Result<()> { device.name(), ) })?; - } else { + } else if devices.len() > 1 { anyhow::bail!("Multiple Android devices are connected ({}), please disconnect devices you do not intend to use so Tauri can determine which to use", devices.iter().map(|d| d.name()).collect::>().join(", ")); }