errors break things?

This commit is contained in:
Daniel Flanagan 2019-12-12 13:17:20 -06:00
parent 6f7d80d761
commit b81bdf6abd
3 changed files with 2 additions and 3 deletions

View File

@ -82,6 +82,6 @@ inotifywait -m -e "${FSW_EVENTS}" -r "${DIRS[@]}" 2>&1 \
export FSW_EVENT="$events $dir$filename"
dbg "Event:\n $(date)\n $FSW_PATH\n $FILTER\n $FSW_EVENT\n $dir $events $filename\n ${SHELL_COMMAND}"
dbg "Filtered Event: $(<<< "$FSW_PATH" grep -P "$FILTER")"
<<< "$FSW_PATH" grep -P "$FILTER" > /dev/null 2>&1 && eval "${SHELL_COMMAND}"
<<< "$FSW_PATH" grep -P "$FILTER" > /dev/null 2>&1 && eval "${SHELL_COMMAND}" &> /dev/null
fi
done

View File

@ -2,7 +2,7 @@
if [[ ! -z "${1+x}" ]]; then
while read r; do
<<< "${r}" "$1"
<<< "${r}" "$@"
done
else
echo "No reader program provided."

View File

@ -49,7 +49,6 @@ else
fi
job="call jobstart(['inotifywait', '-m', '-e', 'close_write', '${out}'], {'on_stdout':{j,d,e->execute('checktime')}})"
echo "$job"
# this will only autosave (and therefore autoreload) for the out buffer (since
# it was opened last) - autosaving (and therefore autorunning) is potentially