From cf974a1e0f1bf07d89d19595b7e8ca5e5646b653 Mon Sep 17 00:00:00 2001 From: Cotes Chung 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 f77674c6a29..f7796d87fa0 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"