From 72b35646bb130046587dceaf238c2e29665b0538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Thu, 13 Mar 2025 22:28:49 +0100 Subject: [PATCH] OpenWebUI check if there are stashed changes before poping (#3064) --- ct/openwebui.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ct/openwebui.sh b/ct/openwebui.sh index 7c6100a37..14a45f5e9 100644 --- a/ct/openwebui.sh +++ b/ct/openwebui.sh @@ -46,7 +46,9 @@ function update_script() { cd ./backend $STD pip install -r requirements.txt -U cp -rf /opt/open-webui-backup/* /opt/open-webui/backend - $STD git stash pop + if git stash list | grep -q 'stash@{'; then + $STD git stash pop + fi systemctl start open-webui.service msg_ok "Updated Successfully" exit