Skip to content

Commit

Permalink
Fix validation implementation (linuxmint#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcalixte authored Mar 26, 2024
1 parent ff5efc0 commit e794332
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions validate-spice
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,18 @@ def main():
help='the UUID of the Spice')
args = parser.parse_args()

is_valid = []
if args.all:
is_valid = True
for file_path in os.listdir("."):
if os.path.isdir(file_path) and not file_path.startswith("."):
is_valid = validate_xlet(file_path)
is_valid.append(validate_xlet(file_path))
elif args.uuid:
is_valid = validate_xlet(args.uuid)
is_valid.append(validate_xlet(args.uuid))
else:
parser.print_help()
sys.exit(2)

quit(is_valid)
quit(all(is_valid))


if __name__ == "__main__":
Expand Down

0 comments on commit e794332

Please sign in to comment.