#!/bin/bash source "site.defaults.conf" if [ -f "site.conf" ]; then source "site.conf" fi inotifywait -qrme close_write,delete,move --format "%w%f" "${CONTENT_DIR%/}" \ | while read file do if [ -f "$file" ]; then # scripts/build_content.sh "single" "$file" scripts/build_content.sh "all_md" elif [ ! -d "$file" ]; then scripts/build_content.sh "delete" "$file" fi done