mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
5365f971ef
Signed-off-by: phernandez <paul@basicmachines.co>
18 lines
447 B
Bash
Executable File
18 lines
447 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if ! command -v uv >/dev/null 2>&1; then
|
|
echo "uv is required to run BM integration tests against source checkout." >&2
|
|
exit 1
|
|
fi
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
DEFAULT_REPO="${SCRIPT_DIR}/../../.."
|
|
REPO_PATH="${BASIC_MEMORY_REPO:-$DEFAULT_REPO}"
|
|
|
|
if [[ -d "$REPO_PATH" && -f "$REPO_PATH/pyproject.toml" ]]; then
|
|
exec uv run --project "$REPO_PATH" bm "$@"
|
|
fi
|
|
|
|
exec bm "$@"
|