mirror of
https://github.com/ReVanced/revanced-cli.git
synced 2026-01-17 16:33:58 +00:00
feat: Check for missing integrations
Check, if the integrations file exists at first.
This commit is contained in:
@@ -130,7 +130,16 @@ internal object PatchCommand : Runnable {
|
|||||||
// region Prepare
|
// region Prepare
|
||||||
|
|
||||||
if (!apk.exists()) {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user