Skip to content

Commit

Permalink
better script
Browse files Browse the repository at this point in the history
  • Loading branch information
grg-haas committed Jun 17, 2024
1 parent 46ca635 commit b276d85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/ci/utils/wait_for.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/python3 -u

import sys
import os
Expand All @@ -15,6 +15,10 @@
exit(0)

n = os.read(sys.stdin.fileno(), 1)
if n is None:
exit(1)

print(n.decode('utf-8'))
if n[0] == pattern[index]:
index += 1
else:
Expand Down

0 comments on commit b276d85

Please sign in to comment.