This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/bash | |
set -e | |
usage() { | |
cat << EOF | |
Usage: ./dev.sh [options...] | |
Options: | |
-p, --pattern Pattern of files to watch | |
-s, --sleep Time to wait between scans | |
-c, --command Command to run when changes are detected |