You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
fix: handle possible error
This commit is contained in:
@@ -27,8 +27,12 @@ let isRefreshing = false;
|
||||
|
||||
// Function to set basePath
|
||||
async function getBasePath() {
|
||||
const { errno } = await exec('[ -d /data/adb/modules/.TA_utl ]');
|
||||
basePath = errno === 0 ? "/data/adb/modules/.TA_utl" : "/data/adb/modules/TA_utl";
|
||||
try {
|
||||
const { errno } = await exec('[ -d /data/adb/modules/.TA_utl ]');
|
||||
basePath = errno === 0 ? "/data/adb/modules/.TA_utl" : "/data/adb/modules/TA_utl";
|
||||
} catch (error) {
|
||||
console.error("Error getting base path:", error);
|
||||
}
|
||||
}
|
||||
|
||||
// Function to load the version from module.prop
|
||||
|
||||
Reference in New Issue
Block a user