diff --git a/Makefile b/Makefile index b412d95..40b9a79 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,10 @@ install: - git config --local core.hooksPath .githooks/ - chmod -R +x .githooks + @git config --local core.hooksPath .githooks/ +# This must be indented like this, otherwise it will not work on Windows +# see: https://stackoverflow.com/questions/77974076/how-do-i-fix-this-error-when-checking-os-in-makefile +ifneq ($(OS),Windows_NT) + @chmod -R +x .githooks +endif @poetry install shell: