Skip to content

Commit 5f952f3

Browse files
committed
fix: Use the first connected device when no ADB device is specified
1 parent 280ded2 commit 5f952f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/app/revanced/cli/command/PatchCommand.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ internal object PatchCommand : Runnable {
246246
.resolve("${outputFilePath.nameWithoutExtension}.keystore")
247247

248248
val installer = if (deviceSerial != null) {
249+
val deviceSerial = deviceSerial!!.ifEmpty { null }
250+
249251
try {
250252
if (mount) {
251253
AdbRootInstaller(deviceSerial)

0 commit comments

Comments
 (0)