Fix the exit codes of checkrefs.py
This commit is contained in:
parent
39f2889cf7
commit
0dea22285e
@ -145,7 +145,7 @@ class CheckRefs:
|
||||
if not validator.run():
|
||||
self.inError = True
|
||||
|
||||
return self.inError
|
||||
return not self.inError
|
||||
|
||||
def get_mod_dependencies(self, *mods):
|
||||
modjsondeps = []
|
||||
|
@ -63,7 +63,7 @@ class RelaxNGValidator:
|
||||
self.validate_soundgroups()
|
||||
self.validate_terrains()
|
||||
self.validate_textures()
|
||||
return self.inError
|
||||
return not self.inError
|
||||
|
||||
def main(self):
|
||||
"""Program entry point, parses command line arguments and launches the validation"""
|
||||
|
@ -220,7 +220,7 @@ class Validator:
|
||||
)
|
||||
self.inError = True
|
||||
|
||||
return self.inError
|
||||
return not self.inError
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user