Update watch_files.sh

This commit is contained in:
mrjohndowe 2022-01-06 15:47:18 -07:00
parent 5c06c6fd1a
commit 0bf2cfae0e
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ DIR="/var/www/html"
OWNER="www-data"
LOGFILE="change.log"
inotifywait -m -r --format "%e %f" "${DIR}" | awk '$1 ~ "CREATE" { print $2; fflush() }' |
inotifywait -m -r --format "%e %f" "${DIR}" | awk '$1 ~ "CREATE" { print $2; fflush() }' |
while read -r file
do
FILE="${DIR}"/"${file}"