summaryrefslogtreecommitdiffstats
path: root/scripts/watch_content.sh
blob: d2578e134ef72318a6074867b1dca6afa429e3e7 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/bash

inotifywait -m -e create -e close_write --format "%f" content \
    | while read FILENAME
        do
            printf "Change detected: %s\n" "$FILENAME"
            scripts/build_content.sh
        done