Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
out=${1:?usage: $0 OUTPUT.png [command...]}
|
||||
shift
|
||||
mkdir -p "$(dirname "$out")"
|
||||
|
||||
# This runs inside `cage --`, after Ghostty has already opened the isolated
|
||||
# Wayland display. Capture before this script exits so Cage keeps the surface
|
||||
# alive long enough for grim to see it.
|
||||
if (($#)); then
|
||||
"$@"
|
||||
fi
|
||||
if ! command -v grim >/dev/null 2>&1; then
|
||||
echo "grim is required inside the Cage client session" >&2
|
||||
exit 127
|
||||
fi
|
||||
grim "$out"
|
||||
Reference in New Issue
Block a user