13 lines
423 B
Bash
13 lines
423 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
script_dir="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
|
python_cmd="${CODEX_IMAGEGEN_PYTHON:-}"
|
|
if [[ -z "$python_cmd" ]]; then
|
|
python_cmd="$(command -v python3 || command -v python || true)"
|
|
fi
|
|
if [[ -z "$python_cmd" ]]; then
|
|
printf '%s\n' "Python 3 not found; install Python or set CODEX_IMAGEGEN_PYTHON." >&2
|
|
exit 1
|
|
fi
|
|
exec "$python_cmd" "$script_dir/install_skill.py" "$@"
|