wp2static/watch_source_files.sh
2017-02-20 12:26:49 +13: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