fix: unable to fetch security patch

add back missing PATH for busybox and curl

#42
This commit is contained in:
KOWX712
2025-05-13 20:43:04 +08:00
parent cd10bd2d92
commit 82b8756867

View File

@@ -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);