makes sure the hook is now executable

This commit is contained in:
2025-12-31 12:27:50 +13:00
parent 049ef7f27f
commit 278b7be4cb

View File

@@ -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
])
])
# make sure its executable
st = os.stat(HOOK_PATH)
os.chmod(HOOK_PATH, st.st_mode | stat.S_IEXEC)