From f694542d64ccb06bfa4d042f26b6b7192d1e912e Mon Sep 17 00:00:00 2001 From: Sculas Date: Wed, 22 Jun 2022 11:49:15 +0200 Subject: [PATCH] fix: wrong variable inverted --- src/main/kotlin/app/revanced/cli/command/MainCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt index 323e29d..a6c5ccf 100644 --- a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt @@ -99,7 +99,7 @@ internal object MainCommand : Runnable { Adb(outputFile, patcher.data.packageMetadata.packageName, args.deploy!!, !args.mount) } - val patchedFile = if (args.mount) { + val patchedFile = if (!args.mount) { File(args.cacheDirectory).resolve("${outputFile.nameWithoutExtension}_raw.apk") } else outputFile