From af4be9aa3a0880af2256303509bf5521f626f8cf Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 31 Oct 2019 10:47:04 -0500 Subject: [PATCH] Finish fsw script changes --- bin/fsw | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/fsw b/bin/fsw index 3103046..73eb43d 100755 --- a/bin/fsw +++ b/bin/fsw @@ -62,7 +62,6 @@ inotifywait -m -e "${FSW_EVENTS}" -r "${DIRS[@]}" 2>&1 \ export FSW_DIR="$dir" export FSW_PATH="$dir$filename" export FSW_FILE_EVENTS="$events" - <<< "$FSW_PATH" grep -P - eval "${SHELL_COMMAND}" + <<< "$FSW_PATH" grep -P "$FILTER" > /dev/null 2>&1 && eval "${SHELL_COMMAND}" fi done