Skip to content

Instantly share code, notes, and snippets.

@feloy
Created April 26, 2020 09:38
Show Gist options
  • Save feloy/86b960fd3ee2af850e21aa5b78a3a762 to your computer and use it in GitHub Desktop.
Save feloy/86b960fd3ee2af850e21aa5b78a3a762 to your computer and use it in GitHub Desktop.
#!/bin/bash
while : ; do
go run main.go &
fswatch -xrn1 -m inotify_monitor --event Created --event Removed --event Updated --event Renamed .
killall main
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment