fix: allow compact mode while media is loading
This commit is contained in:
@@ -45,6 +45,10 @@ def main():
|
||||
control.mkdir()
|
||||
wrapper.write_text("#!/bin/bash\nset -eu\nargs=(\"$@\")\n"
|
||||
+ "control=" + shlex.quote(str(control)) + "\n"
|
||||
+ 'if [[ -f "$control/gate-open" ]]; then\n'
|
||||
+ ' : > "$control/entered-open"\n'
|
||||
+ ' while [[ -f "$control/gate-open" && ! -f "$control/release-open" ]]; do sleep 0.01; done\n'
|
||||
+ 'fi\n'
|
||||
+ 'if [[ "$*" == *"[height=1080]"* ]]; then\n'
|
||||
+ ' if [[ -f "$control/fail-1080" ]]; then\n'
|
||||
+ ' echo "Fixture extraction deliberately failed" >&2; exit 1\n'
|
||||
|
||||
Reference in New Issue
Block a user