mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-21 01:11:46 +03:00
Fixed(?) logs auto-deletion
This commit is contained in:
parent
474364fee1
commit
5d75bd51d6
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@
|
||||||
const purge_logs = await Configs.get('purge_logs.launcher') as string|null;
|
const purge_logs = await Configs.get('purge_logs.launcher') as string|null;
|
||||||
|
|
||||||
if (purge_logs !== null && purge_logs[purge_logs.length - 1] == 'd')
|
if (purge_logs !== null && purge_logs[purge_logs.length - 1] == 'd')
|
||||||
await Neutralino.os.execCommand(`find "${path.addSlashes(launcherDir)}/logs" -maxdepth 1 -mtime ${purge_logs.substring(0, purge_logs.length - 1)} -delete`);
|
await Neutralino.os.execCommand(`find "${path.addSlashes(launcherDir)}/logs" -maxdepth 1 -mtime +${purge_logs.substring(0, purge_logs.length - 1)} -delete`);
|
||||||
|
|
||||||
// Save logs
|
// Save logs
|
||||||
const log = Debug.get().join('\r\n');
|
const log = Debug.get().join('\r\n');
|
||||||
|
|
Loading…
Reference in a new issue