Skip to content

Commit 60c8937

Browse files
authored
adiciona validacao para OS Windows (#455)
1 parent 3e1d2cc commit 60c8937

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
install:
2-
git config --local core.hooksPath .githooks/
3-
chmod -R +x .githooks
2+
@git config --local core.hooksPath .githooks/
3+
# This must be indented like this, otherwise it will not work on Windows
4+
# see: https://stackoverflow.com/questions/77974076/how-do-i-fix-this-error-when-checking-os-in-makefile
5+
ifneq ($(OS),Windows_NT)
6+
@chmod -R +x .githooks
7+
endif
48
@poetry install
59

610
shell:

0 commit comments

Comments
 (0)