feat: Check for missing integrations

Check, if the integrations file exists at first.
This commit is contained in:
oSumAtrIX 2023-08-25 02:26:27 +02:00
parent 3a198052bb
commit c93186fb97
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
1 changed files with 10 additions and 1 deletions

View File

@ -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
}