From eb78b2716e18adf003566ff56eb0c3b82e19c9c8 Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Sat, 22 Dec 2012 01:05:02 +0000 Subject: [PATCH] Makefile: change the way we test if the world file is empty. Use stat(1) instead of catting the file. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dc2592a..0b5fb07 100644 --- a/Makefile +++ b/Makefile @@ -249,7 +249,7 @@ build-software: systools issue etc-update.conf $(CRITICAL) $(WORLD) # the stage3 so may not be installed yet #$(inroot) $(EMERGE) -1n $(USEPKG) app-arch/xz-utils - if test `cat $(WORLD)` ; then \ + if test `stat -c "%s" $(WORLD)` -ne 0 ; then \ $(inroot) $(EMERGE) $(USEPKG) --update --newuse --deep `cat $(WORLD)` $(EXTRA_WORLD); \ else \ true; \