fix update issue

This commit is contained in:
KOWX712
2025-01-19 15:38:04 +08:00
parent dbbd2c2f6a
commit 5a6825de7d

View File

@@ -89,7 +89,7 @@ function setupUpdateMenu() {
try { try {
showPrompt("prompt.installing"); showPrompt("prompt.installing");
setTimeout(async () => { setTimeout(async () => {
await execCommand(`sh ${basePath}common/get_extra.sh --install-update`); await execCommand(`su -c 'sh ${basePath}common/get_extra.sh --install-update'`);
showPrompt("prompt.installed"); showPrompt("prompt.installed");
installButton.style.display = "none"; installButton.style.display = "none";
rebootButton.style.display = "flex"; rebootButton.style.display = "flex";