fix: reoslve the uv issue

This commit is contained in:
Omid Zamani
2026-01-02 16:50:08 +01:00
parent e6cdcc207a
commit 68277cc929
7 changed files with 24 additions and 7 deletions

View File

@@ -19,7 +19,15 @@ if command -v lsb_release 2>&1 >/dev/null; then
fi
# Ensure uv is in PATH
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin:/root/.local/bin:$PATH"
if ! command -v uv &> /dev/null; then
if [ -f "/root/.local/bin/uv" ]; then
export PATH="/root/.local/bin:$PATH"
elif [ -f "$HOME/.local/bin/uv" ]; then
export PATH="$HOME/.local/bin:$PATH"
fi
fi
if ! command -v uv &> /dev/null; then
echo "uv not found. Please install it first or run init.sh"