File size: 383 Bytes
5eec1f1
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
#!/bin/sh
mkdir -p /logs/artifacts
printf '%s %s %s\n' "$(date -u +%FT%TZ)" "$(basename "$0")" "$*" >> /logs/artifacts/terminal-attempts.log
if command -v xmessage >/dev/null 2>&1; then
  DISPLAY="${DISPLAY:-:1}" timeout 20 xmessage -center -buttons OK -default OK \
    "This task uses Friction and the Tutorial video. No terminal is available." >/dev/null 2>&1 || true
fi
exit 127