We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64afc95 commit e3c5550Copy full SHA for e3c5550
src/main/kotlin/app/revanced/cli/command/OptionsCommand.kt
@@ -39,8 +39,9 @@ internal object OptionsCommand : Runnable {
39
40
override fun run() = try {
41
PatchBundleLoader.Jar(*patchBundles).let { patches ->
42
- if (!filePath.exists() || overwrite) {
43
- if (update && filePath.exists()) patches.setOptions(filePath)
+ val exists = filePath.exists()
+ if (!exists || overwrite) {
44
+ if (exists && update) patches.setOptions(filePath)
45
46
Options.serialize(patches, prettyPrint = true).let(filePath::writeText)
47
} else throw OptionsFileAlreadyExistsException()
0 commit comments