mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 13:45:54 +00:00
Update tools.func
This commit is contained in:
@@ -839,14 +839,10 @@ function setup_uv() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ensure_usr_local_bin_persist() {
|
function ensure_usr_local_bin_persist() {
|
||||||
if command -v pveversion &>/dev/null; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
local PROFILE_FILE="/etc/profile.d/custom_path.sh"
|
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"
|
echo 'export PATH="/usr/local/bin:$PATH"' >"$PROFILE_FILE"
|
||||||
chmod +x "$PROFILE_FILE"
|
chmod +x "$PROFILE_FILE"
|
||||||
}
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user