فهرست منبع

fix c823698fc91f462eae028ba7e0dfcb9cc0f3e98c

It's the old problem: globbing fails if nothing matches, i.e. instead of
expanding to nothing (the empty string, ""), the pattern itself is being
returned which again messes everything up.
Phil Sutter 15 سال پیش
والد
کامیت
3f1d151339
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      mk/build.mk

+ 1 - 1
mk/build.mk

@@ -127,7 +127,7 @@ clean:
 	$(MAKE) -C $(CONFIG) clean
 	$(MAKE) -C $(CONFIG) clean
 	for d in ${STAGING_PARENT_PFX}; do \
 	for d in ${STAGING_PARENT_PFX}; do \
 		echo "clean: entering $$d" ; \
 		echo "clean: entering $$d" ; \
-		for f in $$d/pkg/[a-z]*; do  \
+		for f in $$(ls $$d/pkg/[a-z]* 2>/dev/null); do  \
 			echo "clean: cleaning for $$f" ; \
 			echo "clean: cleaning for $$f" ; \
 			while read file ; do \
 			while read file ; do \
 				rm $$d/target/$$file ; \
 				rm $$d/target/$$file ; \