fix: typo with extra `:`
authorAngelo Rodrigues <git@xangelo.ca>
Thu, 14 Aug 2025 11:40:15 +0000 (07:40 -0400)
committerGitHub <noreply@github.com>
Thu, 14 Aug 2025 11:40:15 +0000 (07:40 -0400)
.github/scripts/medium_to_hugo.py

index f8e5544357fb8278f2edf6ee3f04327a5c41b4c3..c35f00839e21ff379ee9a361baf7cefa1886d9ca 100644 (file)
@@ -14,7 +14,7 @@ OUTPUT_DIR = "content/posts/medium"
 EXISTING_SLUGS = {f[:-3] for f in os.listdir(OUTPUT_DIR) if f.endswith(".md")}
 
 # default to false, but read from --force flag if it's set
-FORCE_REBUILD = len(sys.argv) > 1 and sys.argv[1] == "--force":
+FORCE_REBUILD = len(sys.argv) > 1 and sys.argv[1] == "--force"
 
 def slugify(title):
     return re.sub(r"[^\w-]", "", re.sub(r"\s+", "-", title.lower())).strip("-")