From 79e3e0fe3f185d9b4d42211032568a6d48ced93b Mon Sep 17 00:00:00 2001 From: Pallav Vasa Date: Wed, 21 May 2025 10:54:10 +0000 Subject: [PATCH] fix: correct event name mkdir -> create --- setgid-watcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setgid-watcher.sh b/setgid-watcher.sh index b99acb1..a145e34 100644 --- a/setgid-watcher.sh +++ b/setgid-watcher.sh @@ -1,6 +1,6 @@ #!/bin/bash WATCH_DIR="/mnt/private/workspaces-data/public" -inotifywait -m -r -e mkdir --format '%w%f' "$WATCH_DIR" | while read -r newdir; do +inotifywait -m -r -e create --format '%w%f' "$WATCH_DIR" | while read -r newdir; do chmod g+s "$newdir" done