From 1dc32256079a682241c766bede69b28bc4ea789b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 23 Aug 2017 23:46:02 +0200 Subject: bin/calculate-dependent-packages: bugfix --- bin/calculate-dependent-packages | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/calculate-dependent-packages b/bin/calculate-dependent-packages index 70e244f..1b16a91 100755 --- a/bin/calculate-dependent-packages +++ b/bin/calculate-dependent-packages @@ -103,7 +103,7 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/ "${count}" \ "${sf}" >> \ "${tmp_dir}/dependent-count.new" - find "${tmp_dir}/loops" -maxdepth 1 \ + find "${tmp_dir}/loops" -type f -maxdepth 1 \ -exec grep -qxF "${sf}" {} \; \ -exec rm {} \; done < \ @@ -160,7 +160,7 @@ while [ -s "${tmp_dir}/build-list" ] && [ "${sums}" != "$(sha512sum "${tmp_dir}/ while read -r sf; do printf '%s %s\n' "${count}" "${sf}" >> \ "${tmp_dir}/dependent-count.new" - find "${tmp_dir}/loops" -maxdepth 1 -not -name "${loop##*/}" \ + find "${tmp_dir}/loops" -maxdepth 1 -type f -not -name "${loop##*/}" \ -exec grep -qxF "${sf}" {} \; \ -exec rm {} \; done < \ -- cgit v1.2.3