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 }