Skip to content

Commit

Permalink
Source uv only if not already on $PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
apaz-cli committed Jan 7, 2025
1 parent 5a76acb commit 23509e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ main() {
curl -LsSf https://astral.sh/uv/install.sh | sh

log_info "Sourcing uv environment..."
source $HOME/.local/bin/env

if ! command -v uv &> /dev/null; then
source $HOME/.local/bin/env
fi

log_info "Creating virtual environment..."
uv venv

Expand Down

0 comments on commit 23509e6

Please sign in to comment.