From 23509e6df4349295bec42252d66cc8be228d18c1 Mon Sep 17 00:00:00 2001 From: apaz-cli Date: Mon, 6 Jan 2025 19:39:22 -0600 Subject: [PATCH] Source uv only if not already on $PATH --- scripts/install/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install/install.sh b/scripts/install/install.sh index 070b8e73..e96c9309 100755 --- a/scripts/install/install.sh +++ b/scripts/install/install.sh @@ -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