Update tools.func
This commit is contained in:
parent
83b8e39457
commit
3d2d959f65
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user