Skip to content

Commit 11ff178

Browse files
authored
openwebui: Python version usage | core: zsh completion install (#9079)
1 parent 1b6d26a commit 11ff178

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ct/openwebui.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function update_script() {
4242

4343
msg_info "Installing uv-based Open-WebUI"
4444
PYTHON_VERSION="3.12" setup_uv
45-
$STD uv tool install --python $PYTHON_VERSION open-webui[all]
45+
$STD uv tool install --python 3.12 open-webui[all]
4646
msg_ok "Installed uv-based Open-WebUI"
4747

4848
msg_info "Restoring data"

misc/tools.func

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4522,7 +4522,9 @@ function setup_uv() {
45224522

45234523
# Optional: Generate shell completions
45244524
$STD uv generate-shell-completion bash >/etc/bash_completion.d/uv 2>/dev/null || true
4525-
$STD uv generate-shell-completion zsh >/usr/share/zsh/site-functions/_uv 2>/dev/null || true
4525+
if [[ -d /usr/share/zsh/site-functions ]]; then
4526+
$STD uv generate-shell-completion zsh >/usr/share/zsh/site-functions/_uv 2>/dev/null || true
4527+
fi
45264528

45274529
# Optional: Install specific Python version if requested
45284530
if [[ -n "${PYTHON_VERSION:-}" ]]; then

0 commit comments

Comments
 (0)