mirror of
https://github.com/vitalygashkov/crextractor.git
synced 2026-07-15 17:40:03 +02:00
fix: correct checking for downloaded apk
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ const extract = async ({ target = 'mobile', output, cleanup = false } = {}) => {
|
|||||||
console.log('Downloading APK...');
|
console.log('Downloading APK...');
|
||||||
const apkPath = target === 'tv' ? await downloadTvApk() : await downloadMobileApk();
|
const apkPath = target === 'tv' ? await downloadTvApk() : await downloadMobileApk();
|
||||||
|
|
||||||
if (existsSync(apkPath)) {
|
if (!existsSync(apkPath)) {
|
||||||
console.error('Unable to find APK (possibly a download error)');
|
console.error('Unable to find APK (possibly a download error)');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user