Skip to content

Commit

Permalink
feat: Check for missing integrations
Browse files Browse the repository at this point in the history
Check, if the integrations file exists at first.
  • Loading branch information
oSumAtrIX committed Aug 25, 2023
1 parent 3a19805 commit c93186f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/kotlin/app/revanced/cli/command/PatchCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,16 @@ internal object PatchCommand : Runnable {
// region Prepare

if (!apk.exists()) {
logger.severe("Input file ${apk.name} does not exist")
logger.severe("APK file ${apk.name} does not exist")
return
}

integrations.filter { !it.exists() }.let {
if (it.isEmpty()) return@let

it.forEach { integration ->
logger.severe("Integration file ${integration.name} does not exist")
}
return
}

Expand Down

0 comments on commit c93186f

Please sign in to comment.