I specifically try to simultaneously watch 2 different types of files in 2 subdirectories:
.coffee filetypes in the js subdirectory
.styl filetypes in the 'css' subdirectory
I know only so much bash, and I'm trying to make something like this function
while inotifywait --format %w%f ./{css,js}/*.{styl,coffee}; do
// Edit // changed this line:
while inotifywait --format %w%f ./{css,js}/*.{styl,coffee}; do
So now it checks both files, but if there are no files in the css folder. coffee or .styl files in js, it returns an error so that files are not found.
In addition, I noticed that when I run this script, it returns / runs the next 3 times
Setting up watches. Watches established. ./css/styles.styl
source share