From 3461c0562afc5f61d881e63060688d9aa8909dcf Mon Sep 17 00:00:00 2001 From: Lucie Scarlet Date: Mon, 16 Sep 2024 18:35:03 +0200 Subject: [PATCH] Fixed bug where something like 'c,cmake' would not output `build/` Instead of focusing on argv, let's focus on the URL. --- gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ") -- 2.45.2