From cefacc2b70d9e1e9c94523a3ef0358d701d6ea6f Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 29 Apr 2025 15:12:27 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/misc/tools.func b/misc/tools.func index d2e5f0c..cb05938 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -816,6 +816,10 @@ function setup_uv() { if [[ "$INSTALLED_VERSION" == "$LATEST_VERSION" ]]; then msg_ok "uv is already at the latest version ($INSTALLED_VERSION)" rm -rf "$TMP_DIR" + # set path + if [[ ":$PATH:" != *":/usr/local/bin:"* ]]; then + export PATH="/usr/local/bin:$PATH" + fi return 0 else msg_info "Updating uv from $INSTALLED_VERSION to $LATEST_VERSION" @@ -830,5 +834,10 @@ function setup_uv() { install -m 755 "$TMP_DIR"/*/uv "$UV_BIN" rm -rf "$TMP_DIR" + # set path + if [[ ":$PATH:" != *":/usr/local/bin:"* ]]; then + export PATH="/usr/local/bin:$PATH" + fi + msg_ok "uv installed/updated to $LATEST_VERSION" }