Skip to content

Instantly share code, notes, and snippets.

@bdotdub
Created May 28, 2014 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdotdub/6c40d5cbabf922bb3d32 to your computer and use it in GitHub Desktop.
Save bdotdub/6c40d5cbabf922bb3d32 to your computer and use it in GitHub Desktop.
#!/bin/bash
hash fswatch 2>/dev/null || brew install fswatch
function stopping() {
echo "Done"
exit 0
}
trap stopping SIGINT
while true; do
go test
fswatch -1 *.go
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment