Skip to content

Commit a7de7a0

Browse files
committed
[WIP] address review
1 parent 95256a1 commit a7de7a0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/main/kotlin/app/revanced/cli/command/utility/InstallCommand.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ internal object InstallCommand : Runnable {
3131

3232
@Option(
3333
names = ["-m", "--mount"],
34-
description = ["Mount the supplied APK file over the app with the given package name."],
34+
description = ["Mount the supplied APK file over the app with the supplied package name."],
3535
)
3636
private var packageName: String? = null
3737

@@ -49,14 +49,12 @@ internal object InstallCommand : Runnable {
4949
}
5050

5151
when (result) {
52-
RootInstallerResult.SUCCESS ->
53-
logger.info("Mounted the APK file")
52+
RootInstallerResult.SUCCESS, AdbInstallerResult.Success ->
53+
logger.info("Installed the APK file")
5454
RootInstallerResult.FAILURE -> {
5555
logger.severe("Failed to mount the APK file")
5656
throw Exception()
5757
}
58-
AdbInstallerResult.Success ->
59-
logger.info("Installed the APK file")
6058
is AdbInstallerResult.Failure -> {
6159
logger.severe(result.exception.toString())
6260
throw Exception()

0 commit comments

Comments
 (0)