mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-08-30 15:28:05 +08:00
9 lines
262 B
Bash
Executable file
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
|