From 82b8756867bca6ce576f8d8d8acff6298d7209e0 Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Tue, 13 May 2025 20:43:04 +0800 Subject: [PATCH] fix: unable to fetch security patch add back missing PATH for busybox and curl #42 --- module/webui/scripts/security_patch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/webui/scripts/security_patch.js b/module/webui/scripts/security_patch.js index 6f0e611..d5d271e 100644 --- a/module/webui/scripts/security_patch.js +++ b/module/webui/scripts/security_patch.js @@ -313,7 +313,8 @@ export function securityPatch() { // Get button getButton.addEventListener('click', async () => { showPrompt('security_patch.fetching'); - const output = spawn('sh', [`${basePath}/common/get_extra.sh`, '--get-security-patch']); + const output = spawn('sh', [`${basePath}/common/get_extra.sh`, '--get-security-patch'], + { env: { PATH: "/data/adb/ap/bin:/data/adb/ksu/bin:/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH" }}); output.stdout.on('data', (data) => { showPrompt('security_patch.fetched', true, 1000); checkAdvanced(true);