From 1418c104636f81efe79af55f903b81fb32975d02 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 9 Nov 2023 17:54:09 +0100 Subject: [PATCH] fix find dot --- 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 d5549ff..944cae8 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 -maxdepth 1 | wc -l) +cnt=$(find "${tmps}"/dotfiles ! -path . -maxdepth 1 | wc -l) ls -1 "${tmps}"/dotfiles [ "${cnt}" != "0" ] && echo "dry import failed (1 -> ${cnt})" && exit 1