mirror of
https://github.com/certd/certd.git
synced 2026-04-14 04:20:52 +08:00
chore:
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import fs from "fs";
|
||||
import fs from 'fs';
|
||||
function getFileRootDir(rootDir?: string) {
|
||||
if (rootDir == null) {
|
||||
const userHome = process.env.HOME || process.env.USERPROFILE;
|
||||
rootDir = userHome + "/.certd/storage/";
|
||||
rootDir = userHome + '/.certd/storage/';
|
||||
}
|
||||
|
||||
if (!fs.existsSync(rootDir)) {
|
||||
|
||||
Reference in New Issue
Block a user