Personal homepage and static website generator for noah.is https://noah.is/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

watch.sh 314B

1234567891011121314
  1. #!/bin/bash
  2. function die() {
  3. echo >&2 $1
  4. exit 1
  5. }
  6. # Before we crash and burn, make sure necessary programs are installed!
  7. command -v inotifywait || die "I need the inotifywait command (apt install inotify-tools)"
  8. make
  9. while inotifywait -r -e modify,move,create,delete static templates; do
  10. make
  11. done