mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-11 01:44:38 +00:00
[core]: uv uses now "update-shell" command (#7172)
* [core]: uv uses now "update-shell" command * Improve uv shell integration setup process Refactor uv shell integration setup with improved error handling.
This commit is contained in:
parent
9fda9f34c5
commit
83eb2da451
1 changed files with 6 additions and 1 deletions
|
@ -1329,8 +1329,13 @@ function setup_uv() {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
rm -rf "$TMP_DIR"
|
if [[ ":$PATH:" != *":/usr/local/bin:"* ]]; then
|
||||||
|
export PATH="/usr/local/bin:$PATH"
|
||||||
|
fi
|
||||||
ensure_usr_local_bin_persist
|
ensure_usr_local_bin_persist
|
||||||
|
if ! $STD uv python update-shell; then
|
||||||
|
msg_error "uv shell integration failed – continuing anyway"
|
||||||
|
fi
|
||||||
msg_ok "Setup uv $LATEST_VERSION"
|
msg_ok "Setup uv $LATEST_VERSION"
|
||||||
|
|
||||||
# Optional: install specific Python version
|
# Optional: install specific Python version
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue