-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·31 lines (25 loc) · 809 Bytes
/
install.sh
File metadata and controls
executable file
·31 lines (25 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env sh
set -eu
if ! command -v uv >/dev/null 2>&1; then
echo "uv not found; installing uv..."
curl -LsSf https://astral.sh/uv/install.sh | sh
fi
# The uv installer usually writes to ~/.local/bin. Add it for this shell in
# case the user's PATH has not been refreshed yet.
export PATH="${HOME}/.local/bin:${PATH}"
if ! command -v uv >/dev/null 2>&1; then
echo "uv installation finished, but uv is not on PATH." >&2
echo "Open a new shell, then run: uv tool install mind-cli" >&2
exit 1
fi
echo "Installing mind-cli with uv..."
uv tool install mind-cli
if ! command -v mind >/dev/null 2>&1; then
echo "mind installed, but the executable is not on PATH yet." >&2
echo "Open a new shell, then run: mind init" >&2
exit 1
fi
mind --version
echo
echo "Next step:"
echo " mind init"