From 9b62d5732c3f3f5d4209921bb18dec4b3a84b1d3 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 9 Nov 2023 19:20:51 +0100 Subject: [PATCH] fix find empty dir --- tests-ng/dry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests-ng/dry.sh b/tests-ng/dry.sh index 944cae8..1be74f5 100755 --- a/tests-ng/dry.sh +++ b/tests-ng/dry.sh @@ -162,7 +162,7 @@ echo "content" > "${tmpd}"/dirchildren/f2 echo "dry import" cd "${ddpath}" | ${bin} import -c "${cfg}" -f -p p1 -V --dry "${tmpd}"/file "${tmpd}"/link "${tmpd}"/dir "${tmpd}"/dirchildren -cnt=$(find "${tmps}"/dotfiles ! -path . -maxdepth 1 | wc -l) +cnt=$(find "${tmps}"/dotfiles -mindepth 1 -maxdepth 1 | wc -l) ls -1 "${tmps}"/dotfiles [ "${cnt}" != "0" ] && echo "dry import failed (1 -> ${cnt})" && exit 1