Silence inotifywait

This commit is contained in:
Manuel Thalmann 2023-03-28 14:55:34 +02:00
parent 4854242d7d
commit 7e77f901d2

View file

@ -12,7 +12,7 @@ mkdir -p --mode=777 /tmp/.X11-unix;
# Create a job for waiting for Xvfb to start
watchStarting="$(mktemp)";
{ 2>&1 inotifywait -e create /tmp/.X11-unix/; } | { sed -u -e "/^Watches established.$/e rm \"$watchStarting\""; } &
{ 2>&1 inotifywait -e create /tmp/.X11-unix/ > /dev/null; } | { sed -u -e "/^Watches established.$/e rm \"$watchStarting\""; } &
displayResolver="$!";
# Wait for `inotifywait` to start