From 278b7be4cb6449e0cc36dc2f7f8a464bede6f2c4 Mon Sep 17 00:00:00 2001 From: sirlilpanda Date: Wed, 31 Dec 2025 12:27:50 +1300 Subject: [PATCH] makes sure the hook is now executable --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d71c6da..adb4bb1 100644 --- a/setup.py +++ b/setup.py @@ -20,4 +20,8 @@ with open(HOOK_PATH, "w") as txt: "#!/bin/sh\n", #shebang f"{PYTHON_BIN} {HOOK_SCRIPT_PATH}\n" "exit 0\n" #make sure she closes - ]) \ No newline at end of file + ]) + +# make sure its executable +st = os.stat(HOOK_PATH) +os.chmod(HOOK_PATH, st.st_mode | stat.S_IEXEC) \ No newline at end of file