From 31853fe5393af04805857b78a54434e1c51e4c8e Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Tue, 21 Jun 2022 22:19:12 +0200 Subject: [PATCH] fix: improper use of mount variable --- src/main/kotlin/app/revanced/cli/command/MainCommand.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt index 2f6f54d5..1131d7d9 100644 --- a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt @@ -98,14 +98,15 @@ internal object MainCommand : Runnable { Adb(outputFile, patcher.data.packageMetadata.packageName, args.deploy!!, !args.mount) } - val patchedFile = - if (args.mount) outputFile else File(args.cacheDirectory).resolve("${outputFile.nameWithoutExtension}_raw.apk") + val patchedFile = if (args.mount) { + File(args.cacheDirectory).resolve("${outputFile.nameWithoutExtension}_raw.apk") + } else outputFile Patcher.start(patcher, patchedFile) println("[aligning & signing]") - if (args.mount) { + if (!args.mount) { Signing.start( patchedFile, outputFile,