summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Dierks <tim@dierks.org>2017-12-01 03:18:32 +0100
committerJack Humbert <jack.humb@gmail.com>2017-12-01 04:15:20 +0100
commitc9d0f210bc3aa4cc7978550cea9524206d155c0c (patch)
treeab7e79032463482f1cd3804b4d3a0d818f9ec2c4
parent7aaef1626693f4e4449946de025aa6175adcfa3d (diff)
downloadqmk_firmware-c9d0f210bc3aa4cc7978550cea9524206d155c0c.tar.gz
qmk_firmware-c9d0f210bc3aa4cc7978550cea9524206d155c0c.tar.xz
Change awk detector to work with mawk; fixes #2073
-rw-r--r--message.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/message.mk b/message.mk
index 7c832b292..f5fb751ed 100644
--- a/message.mk
+++ b/message.mk
@@ -9,7 +9,7 @@ ifeq ($(COLOR),true)
BOLD=\033[1m
endif
-ifneq ($(shell awk --version 2>/dev/null),)
+ifneq ($(shell echo "1 2 3" | awk '{ printf "%2s", $$3; }' 2>/dev/null)," 3")
AWK=awk
else
AWK=cat && test