mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-28 14:07:55 +00:00
15 lines
433 B
Bash
Executable File
15 lines
433 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# jarvis-wrapper.sh — symlinked to ~/.local/bin/jarvis.
|
|
# Activates the managed venv and execs the real jarvis CLI.
|
|
|
|
OPENJARVIS_HOME="${OPENJARVIS_HOME:-$HOME/.openjarvis}"
|
|
VENV="$OPENJARVIS_HOME/.venv"
|
|
|
|
if [[ ! -d "$VENV" ]]; then
|
|
echo "jarvis: venv not found at $VENV" >&2
|
|
echo "Re-run the installer: curl -fsSL https://openjarvis.ai/install.sh | bash" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec "$VENV/bin/jarvis" "$@"
|