watch_cr 193 Bytes
Newer Older
Mark Kindred's avatar
Mark Kindred committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

dir=$1

if [ -d "${dir}" ]
then
  make drush cr
  while inotifywait -qqre modify "$dir"; do
      make drush cr
      echo
  done
else
  echo "Please provide a directory."
fi

exit