From 3d2d959f65efb87dfa107c4708c4a1c1d9c83d09 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 29 Apr 2025 15:42:39 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 587ac92..1a97478 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -839,14 +839,10 @@ function setup_uv() { } function ensure_usr_local_bin_persist() { - if command -v pveversion &>/dev/null; then - return - fi - local PROFILE_FILE="/etc/profile.d/custom_path.sh" - [[ ! -f "$PROFILE_FILE" ]] && { + if [[ ! -f "$PROFILE_FILE" ]] && ! command -v pveversion &>/dev/null; then echo 'export PATH="/usr/local/bin:$PATH"' >"$PROFILE_FILE" chmod +x "$PROFILE_FILE" - } + fi }