From 329f8a383fe52f4c2a66075d893c6599d3550bee Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 22 May 2022 22:38:27 +0200 Subject: [PATCH] fix: delete `outputFile` after deploying --- src/main/kotlin/app/revanced/cli/MainCommand.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/app/revanced/cli/MainCommand.kt b/src/main/kotlin/app/revanced/cli/MainCommand.kt index 2236fad..f46096a 100644 --- a/src/main/kotlin/app/revanced/cli/MainCommand.kt +++ b/src/main/kotlin/app/revanced/cli/MainCommand.kt @@ -87,11 +87,10 @@ internal object MainCommand : Runnable { Patcher.start(patcher) - if (clean) { - File(cacheDirectory).deleteRecursively() - outputFile.delete() - } + if (clean) File(cacheDirectory).deleteRecursively() adb?.deploy() + + if (clean) outputFile.delete() } -} \ No newline at end of file +}