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