fswatch
macOS でのファイル更新検知
インストール
$ brew install fswatch
ファイル更新したら自作スクリプト実行
$ fswatch -o /Users/hoge/Documents/project/ | xargs -n1 "/Users/hoge/Documents/scripts/sync.sh"
fswatch path script
形式は old version
macOS でのファイル更新検知
インストール
$ brew install fswatch
ファイル更新したら自作スクリプト実行
$ fswatch -o /Users/hoge/Documents/project/ | xargs -n1 "/Users/hoge/Documents/scripts/sync.sh"
fswatch path script
形式は old version