diff --git a/apt-repo-updater b/apt-repo-updater index c1a1458..d8fabfc 100755 --- a/apt-repo-updater +++ b/apt-repo-updater @@ -128,7 +128,7 @@ do mkdir -p "$INCOME_DIR" msg "start watching INCOME_DIR" - inotifywait --quiet -e move -e modify -e create "$INCOME_DIR" & + inotifywait --quiet -e move_to -e close_write "$INCOME_DIR" & inotify_pid="$!" # When inotifywait was killed, its return code is no-zero,