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

source "site.defaults.conf"

inotifywait -qrme close_write,delete,move --format "%w%f" "${METADATA_DIR%/}" \
    | while read file
        do
            scripts/build_content.sh "all_md"
        done