Просмотр исходного кода

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 16 лет назад
Родитель
Сommit
3f1d151339
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      mk/build.mk

+ 1 - 1
mk/build.mk

@@ -127,7 +127,7 @@ clean:
 	$(MAKE) -C $(CONFIG) clean
 	for d in ${STAGING_PARENT_PFX}; do \
 		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" ; \
 			while read file ; do \
 				rm $$d/target/$$file ; \