From e96f9051c007c432edc03a114b930e7ea54a73ae Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 29 Aug 2020 23:04:27 +0800 Subject: [PATCH] Fix the exclusion regex rule of swatch (#112) --- tools/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/run.sh b/tools/run.sh index f77674c..f7796d8 100755 --- a/tools/run.sh +++ b/tools/run.sh @@ -86,7 +86,7 @@ main() { bash _scripts/sh/dump_lastmod.sh if [[ $realtime = true ]]; then - fswatch -0 -e "\\$CONTAINER" -e "\.git" "$WORK_DIR" | xargs -0 -I {} bash "./${SYNC_TOOL}" {} "$WORK_DIR" . & + fswatch -0 -e "/\..*" "$WORK_DIR" | xargs -0 -I {} bash "./${SYNC_TOOL}" {} "$WORK_DIR" . & fi echo "\$ $cmd"