Skip to content

Commit 732c410

Browse files
committed
empty path handling
1 parent 346be61 commit 732c410

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nginx-f1/nginx-reloader.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ while true
1717
do
1818
sleep "${RELOADER_DELAY}"
1919
FILE=$(inotifywait --recursive --include '\.conf$' --format '%f' -e create -e modify -e delete -e move "${WATCH_DIR}" 2>/dev/null)
20+
21+
if [[ -z "${FILE}" ]]; then
22+
continue
23+
fi
24+
2025
log "Detected: ${FILE}"
2126
nginx -t
2227
if [[ $? -eq 0 ]]; then

0 commit comments

Comments
 (0)