File: watchtestscripts.sh

package info (click to toggle)
hugo 0.155.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 43,600 kB
  • sloc: javascript: 31,879; ansic: 2,350; xml: 350; makefile: 196; sh: 110
file content (7 lines) | stat: -rwxr-xr-x 246 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
#!/bin/bash

trap exit SIGINT

# I use "run tests on save" in my editor.
# Unfortunately, changes to text files do not trigger this. Hence this workaround.
while true; do find testscripts -type f -name "*.txt" | entr -pd touch main_test.go; done