mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-06-14 09:00:10 +02:00
feat: Check for missing integrations
Check, if the integrations file exists at first.
This commit is contained in:
parent
3a198052bb
commit
c93186fb97
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user