From: Lucie Scarlet Date: Mon, 16 Sep 2024 16:35:03 +0000 (+0200) Subject: Fixed bug where something like 'c,cmake' would not output `build/` X-Git-Url: https://git.chaotic.ninja/gitweb/lucie/?a=commitdiff_plain;ds=inline;p=gitignore.git Fixed bug where something like 'c,cmake' would not output `build/` Instead of focusing on argv, let's focus on the URL. --- diff --git a/gitignore b/gitignore index b123dea..387844d 100755 --- a/gitignore +++ b/gitignore @@ -12,7 +12,7 @@ def main() -> int: FINAL_URL += f",{arg.lower()}" res: requests.Response = requests.get(FINAL_URL) gitignore = res.text - if "cmake" in argv: + if "cmake" in FINAL_URL: gitignore += "\nbuild/" print(gitignore) to_save: str = input("Gitignore file has been generated. Save? (Y/n) ")