From 60c8937876866c8e80004182d3fa1d8914d1af32 Mon Sep 17 00:00:00 2001 From: Gabriel Viana Date: Thu, 19 Dec 2024 16:30:13 -0300 Subject: [PATCH] adiciona validacao para OS Windows (#455) --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b412d95f..40b9a799 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: