Minor grep improvements

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-07-02 22:53:23 +01:00
parent 7289e685ab
commit 33cd3bece9
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ mkfifo "$PIPE"
ntfy serve > "$PIPE" 2>&1 &
PID=$!
grep -q "INFO Listening on :80\[http\]" < "$PIPE"
grep -q -m 1 "INFO Listening on :80\[http\]" < "$PIPE"
kill "$PID"
wait "$PID" || true
rm -f "$PIPE"