File size: 563 Bytes
b88c26d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# BURT-IMMA Protected Execution Gate
# Shell wrapper for burt_imma_gate.py
# Contact: jessica@collectivekitty.com

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(dirname "$SCRIPT_DIR")"

export BURT_IMMA_REPO_ROOT="$REPO_ROOT"

PYTHON_GATE="$REPO_ROOT/burt_imma_gate.py"

if [ ! -f "$PYTHON_GATE" ]; then
  echo "ERROR: Python gate not found at $PYTHON_GATE"
  exit 3
fi

if ! command -v python3 &> /dev/null; then
  echo "ERROR: python3 not found in PATH"
  exit 3
fi

exec python3 "$PYTHON_GATE" "$@"