Explorar o código

Change awk detector to work with mawk; fixes #2073

Tim Dierks %!s(int64=7) %!d(string=hai) anos
pai
achega
c9d0f210bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      message.mk

+ 1 - 1
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