From 317025e93af6f01e0aa8e80e80af7e7f3c5422ee Mon Sep 17 00:00:00 2001 From: baybird Date: Sun, 24 Mar 2019 13:54:21 -0700 Subject: [PATCH] Added an event "-e modify" to solve the #9 issue that doen't work on Ubuntu 14.04 with inotifywait 3.14. --- go-reload | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go-reload b/go-reload index 3b0ad96..0ac435f 100755 --- a/go-reload +++ b/go-reload @@ -10,7 +10,7 @@ function monitor() { else # Watch all *.go files in the specified directory # Call the restart function when they are saved - inotifywait -q -m -r -e close_write -e moved_to --exclude '[^g][^o]$' $1 | + inotifywait -q -m -r -e close_write -e modify -e moved_to --exclude '[^g][^o]$' $1 | while read line; do restart done