1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 12:46:44 +00:00

fix find empty dir

This commit is contained in:
deadc0de6
2023-11-09 19:20:51 +01:00
parent 1418c10463
commit 9b62d5732c

2
tests-ng/dry.sh vendored
View File

@@ -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