mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
10 lines
185 B
Bash
Executable file
10 lines
185 B
Bash
Executable file
#!/bin/bash
|
|
|
|
BLOG_TARGET=${BLOG_TARGET:-ocean}
|
|
|
|
while true; do
|
|
inotifywait -e modify,create,delete,move -r drafts -r posts
|
|
echo "changed at $(date)"
|
|
sleep 5
|
|
make "$TARGET"
|
|
done
|