Skip to content

Commit

Permalink
Added an event "-e modify" to solve the alexedwards#9 issue that
Browse files Browse the repository at this point in the history
doen't work on Ubuntu 14.04 with inotifywait 3.14.
  • Loading branch information
baybird committed Mar 24, 2019
1 parent aabe19d commit 317025e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-reload
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 317025e

Please sign in to comment.