mirror of
https://github.com/chevereto/docker.git
synced 2026-02-24 15:10:45 +01:00
18 lines
367 B
Bash
Executable File
18 lines
367 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
|
. $SCRIPT_DIR/sync.sh
|
|
inotifywait \
|
|
--event create \
|
|
--event delete \
|
|
--event modify \
|
|
--event move \
|
|
--format "%e %w%f" \
|
|
--exclude $EXCLUDE \
|
|
--monitor \
|
|
--recursive \
|
|
$SOURCE |
|
|
while read CHANGED; do
|
|
sync
|
|
done
|