wp2static/provisioning/watch_source_files.sh
Leon Stafford 8fbc749564 WIP tidying filetree
Former-commit-id: 5b6480537b
2017-04-02 22:24:43 +12:00

9 lines
262 B
Bash
Executable file

#!/bin/bash
inotifywait -rm --event modify --format '%w%f' --exclude '.*\.swp.*' /app |
while read filename; do
echo 'a file has changed!'
echo $filename
# TODO: better here would just be to perform rsync on the one file
. /sync_sources.sh
done