summaryrefslogtreecommitdiffstats
path: root/scripts/watch_sass.sh
blob: 11c210a91ec16e5100da56d1872aad185285cbb9 (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" "${ASSETS_DIR}css" \
    | while read file
        do
            scripts/build_sass.sh
        done