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