fix: check cache folder exists #161
This commit is contained in:
@@ -196,7 +196,9 @@ const initArgs = async () => {
|
||||
if (argsUpdated && !("app_reset" in args)) {
|
||||
args.app_reset = "arguments";
|
||||
}
|
||||
fs.writeFileSync(argsFileHashPath, argsFileHash);
|
||||
if (fs.existsSync(APP.cache)) {
|
||||
fs.writeFileSync(argsFileHashPath, argsFileHash);
|
||||
}
|
||||
|
||||
// Set global arguments
|
||||
ARGS = args;
|
||||
|
||||
Reference in New Issue
Block a user