Explorar o código

correctly test to see if awk exists

Jack Humbert %!s(int64=9) %!d(string=hai) anos
pai
achega
91b469d88f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tmk_core/rules.mk

+ 1 - 1
tmk_core/rules.mk

@@ -89,7 +89,7 @@ ifeq ($(COLOR),true)
 	BOLD=\033[1m
 endif
 
-ifeq ("$(awk /dev/null 2>&1)", "")
+ifneq ($(shell awk --version 2>/dev/null),)
 	AWK=awk
 else
 	AWK=cat && test