Skip to content

Commit

Permalink
feat: check, if input file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 1, 2022
1 parent 29b057d commit b6dff6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/app/revanced/cli/command/MainCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b6dff6d

Please sign in to comment.