feat: check, if input file exists

This commit is contained in:
oSumAtrIX 2022-10-01 05:19:42 +02:00
parent 29b057dead
commit b6dff6d832
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -138,7 +138,7 @@ internal object MainCommand : Runnable {
val patcher = app.revanced.patcher.Patcher(
PatcherOptions(
args.inputFile,
args.inputFile.also { if (!it.exists()) return logger.error("Input file ${args.inputFile} does not exist.") },
pArgs.cacheDirectory,
pArgs.aaptPath,
pArgs.cacheDirectory,