From e0f4c4f654a23d8add26bc2cdc7b27b7eaa475bd Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 2 Oct 2023 10:45:12 +0200 Subject: [PATCH] Fix python mistakes --- commands/tinfoil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/tinfoil.py b/commands/tinfoil.py index 3cebbf8..bc9bba4 100755 --- a/commands/tinfoil.py +++ b/commands/tinfoil.py @@ -66,7 +66,7 @@ def get_title_shortid(name): re_id = re.search(r"\[([0-9A-F]*)\]", name) if not re_id: - continue + return id = re_id.group(1) @@ -101,7 +101,7 @@ remove("nsz/updates") try: subprocess.run( - ["rclone", "sync", "-P", "-v", f"{remote}:nsz/homebrew", f"nsz/homebrew/"], + ["rclone", "sync", "-P", "-v", f"{remote}:nsz/homebrew", "nsz/homebrew/"], check=True, stdout=sys.stdout, )