errors break things?
This commit is contained in:
parent
6f7d80d761
commit
b81bdf6abd
3 changed files with 2 additions and 3 deletions
2
bin/fsw
2
bin/fsw
|
@ -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
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
if [[ ! -z "${1+x}" ]]; then
|
||||
while read r; do
|
||||
<<< "${r}" "$1"
|
||||
<<< "${r}" "$@"
|
||||
done
|
||||
else
|
||||
echo "No reader program provided."
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue