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

source "site.defaults.conf"

if [ -f "site.conf" ]; then
    source "site.conf"
fi

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