Skip to content

Commit 72b3564

Browse files
authored
OpenWebUI check if there are stashed changes before poping (#3064)
1 parent e10574e commit 72b3564

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ct/openwebui.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ function update_script() {
4646
cd ./backend
4747
$STD pip install -r requirements.txt -U
4848
cp -rf /opt/open-webui-backup/* /opt/open-webui/backend
49-
$STD git stash pop
49+
if git stash list | grep -q 'stash@{'; then
50+
$STD git stash pop
51+
fi
5052
systemctl start open-webui.service
5153
msg_ok "Updated Successfully"
5254
exit

0 commit comments

Comments
 (0)