#!/bin/bash

inotify-hookable \
    --watch-directories /opt/apps/blog \
    --watch-directories /opt/apps/document/python \
    --watch-directories /opt/apps/document/bash \
    --ignore-paths /opt/apps/blog/.git/ \
    --ignore-paths /opt/apps/blog/img/avatar.jpg \
    --on-modify-path-command "(^/opt/apps/blog/.*)=(bash /opt/scripts/update/jekyll_content_update.sh blog)" \
    --on-modify-path-command "(^/opt/apps/document/python/.*)=(bash /opt/scripts/update/jekyll_content_update.sh python)" \
    --on-modify-path-command "(^/opt/apps/document/bash/.*)=(bash /opt/scripts/update/jekyll_content_update.sh 'bash')"

