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

improve comparison

This commit is contained in:
deadc0de6
2024-01-27 23:09:46 +01:00
committed by deadc0de
parent e94b5bb5c0
commit 6fc489289e
4 changed files with 65 additions and 28 deletions

View File

@@ -92,6 +92,7 @@ _EOF
cd "${ddpath}" | ${bin} install -f -c "${cfg}" -p p1
# compare
echo "compare after install..."
cd "${ddpath}" | ${bin} compare -c "${cfg}" -p p1
# import
@@ -109,6 +110,7 @@ chmod 700 "${fnormal}"
chmod 700 "${flink}"
set +e
cd "${ddpath}" | ${bin} compare -c "${cfg}" -p p1 -V
out=$(cd "${ddpath}" | ${bin} compare -c "${cfg}" -p p1 2>&1)
cnt=$(echo "${out}" | grep 'modes differ' | wc -l)
set -e