1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-11 11:24:16 +00:00

Add documentation for the "negative ignore pattern" feature

This commit is contained in:
Joey Territo
2020-12-28 21:59:42 -05:00
parent ccd3133ebd
commit 6d5955b0a5
2 changed files with 19 additions and 1 deletions

View File

@@ -104,7 +104,8 @@ rm -rf ${tmpd}
echo "[+] install with negative ignore in dotfile"
echo '(1) expect dotdrop install to warn when negative ignore pattern does not match an already-ignored file'
patt="[WARN] no files that are currently being ignored match \"*/ignore_me/c\". In order for a negative ignore pattern to work, it must match a file that is being ignored by a previous ignore pattern."
patt="[WARN] no files that are currently being ignored match \"*/ignore_me/c\". In order for a negative ignore
pattern to work, it must match a file that is being ignored by a previous ignore pattern."
cd ${ddpath} | ${bin} install -c ${cfg2} --verbose 2>&1 >/dev/null | grep -F "${patt}" ||
(echo "dotdrop did not warn when negative ignore pattern did not match an already-ignored file" && exit 1)