From 699ba1fbd6938cfb81d705fdf1f6304433c7b05c Mon Sep 17 00:00:00 2001 From: mrdudz Date: Sat, 5 Nov 2022 16:42:01 +0100 Subject: [PATCH] when running on cmd.exe only print a message, the style tests require bash --- .github/checks/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/checks/Makefile b/.github/checks/Makefile index 6519eb5b8..93eeddd19 100644 --- a/.github/checks/Makefile +++ b/.github/checks/Makefile @@ -1,4 +1,17 @@ +ifneq ($(shell echo),) + CMD_EXE = 1 +endif + +ifdef CMD_EXE + +.PHONY: checkstyle + +checkstyle: + $(info INFO: style checks require bash.) + +else + .PHONY: checkstyle lineendings tabs lastline spaces noexec checkstyle: lineendings tabs lastline spaces noexec @@ -17,3 +30,5 @@ spaces: spaces.sh noexec: noexec.sh @./noexec.sh + +endif