mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 09:39:17 +00:00
fix find depth
This commit is contained in:
8
tests-ng/dry.sh
vendored
8
tests-ng/dry.sh
vendored
@@ -114,18 +114,18 @@ echo "dry install"
|
|||||||
cd "${ddpath}" | ${bin} install -c "${cfg}" -f -p p1 -V --dry
|
cd "${ddpath}" | ${bin} install -c "${cfg}" -f -p p1 -V --dry
|
||||||
|
|
||||||
echo "test tmpd:${tmpd}"
|
echo "test tmpd:${tmpd}"
|
||||||
cnt=$(find "${tmpd}" -depth 1 -type f | wc -l)
|
|
||||||
ls -1 "${tmpd}"
|
ls -1 "${tmpd}"
|
||||||
|
cnt=$(find "${tmpd}" -maxdepth 1 -type f | wc -l)
|
||||||
[ "${cnt}" != "0" ] && echo "dry install failed (1 -> ${cnt})" && exit 1
|
[ "${cnt}" != "0" ] && echo "dry install failed (1 -> ${cnt})" && exit 1
|
||||||
|
|
||||||
echo "test tmpw:${tmpw}"
|
echo "test tmpw:${tmpw}"
|
||||||
cnt=$(find "${tmpw}" -depth 1 -type f | wc -l)
|
|
||||||
ls -1 "${tmpw}"
|
ls -1 "${tmpw}"
|
||||||
|
cnt=$(find "${tmpw}" -maxdepth 1 -type f | wc -l)
|
||||||
[ "${cnt}" != "0" ] && echo "dry install failed (2 -> ${cnt})" && exit 1
|
[ "${cnt}" != "0" ] && echo "dry install failed (2 -> ${cnt})" && exit 1
|
||||||
|
|
||||||
echo "test tmpa:${tmpa}"
|
echo "test tmpa:${tmpa}"
|
||||||
cnt=$(find "${tmpa}" -depth 1 -type f | wc -l)
|
|
||||||
ls -1 "${tmpa}"
|
ls -1 "${tmpa}"
|
||||||
|
cnt=$(find "${tmpa}" -maxdepth 1 -type f | wc -l)
|
||||||
[ "${cnt}" != "0" ] && echo "dry install failed (3 -> ${cnt})" && exit 1
|
[ "${cnt}" != "0" ] && echo "dry install failed (3 -> ${cnt})" && exit 1
|
||||||
echo "dry install ok"
|
echo "dry install ok"
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
@@ -162,7 +162,7 @@ echo "content" > "${tmpd}"/dirchildren/f2
|
|||||||
echo "dry import"
|
echo "dry import"
|
||||||
cd "${ddpath}" | ${bin} import -c "${cfg}" -f -p p1 -V --dry "${tmpd}"/file "${tmpd}"/link "${tmpd}"/dir "${tmpd}"/dirchildren
|
cd "${ddpath}" | ${bin} import -c "${cfg}" -f -p p1 -V --dry "${tmpd}"/file "${tmpd}"/link "${tmpd}"/dir "${tmpd}"/dirchildren
|
||||||
|
|
||||||
cnt=$(find "${tmps}"/dotfiles -depth 1 | wc -l)
|
cnt=$(find "${tmps}"/dotfiles -maxdepth 1 | wc -l)
|
||||||
ls -1 "${tmps}"/dotfiles
|
ls -1 "${tmps}"/dotfiles
|
||||||
[ "${cnt}" != "0" ] && echo "dry import failed (1 -> ${cnt})" && exit 1
|
[ "${cnt}" != "0" ] && echo "dry import failed (1 -> ${cnt})" && exit 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user