Makefile: change the way we test if the world file is empty.
Use stat(1) instead of catting the file.
This commit is contained in:
parent
d2eb7124a7
commit
eb78b2716e
2
Makefile
2
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; \
|
||||
|
|
Loading…
Reference in New Issue