Explorar o código

build: fix umask detection bashism

the leading 0 is optional and not emitted by some shells

Signed-off-by: Thorsten Glaser <[email protected]>
Thorsten Glaser %!s(int64=7) %!d(string=hai) anos
pai
achega
da5bee5345
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/prereq-build.mk

+ 1 - 1
include/prereq-build.mk

@@ -24,7 +24,7 @@ $(eval $(call TestHostCommand,case-sensitive-fs, \
 
 $(eval $(call TestHostCommand,proper-umask, \
 	Please build with umask 022 - other values produce broken packages, \
-	umask | grep -xE 00[012][012]))
+	umask | grep -xE 0?0[012][012]))
 
 $(eval $(call SetupHostCommand,gcc, \
 	Please install the GNU C Compiler (gcc) 4.8 or later, \