Formatting
This commit is contained in:
parent
a9f13310ab
commit
ba80792cc4
@ -6,16 +6,16 @@ const dirname = Deno.cwd();
|
||||
|
||||
await load({ envPath: `${dirname}/.env`, export: true });
|
||||
|
||||
let userConfigPath: string = '';
|
||||
let userConfigPath: string = "";
|
||||
let staticUsers: { [key: string]: string } = {};
|
||||
|
||||
const defaultUserConfigPaths = [
|
||||
"/etc/substr/users.yaml",
|
||||
`${dirname}/users.yaml`
|
||||
]
|
||||
`${dirname}/users.yaml`,
|
||||
];
|
||||
|
||||
for (const path of defaultUserConfigPaths) {
|
||||
const fileInfo = await Deno.lstat(path).catch(_e => undefined);
|
||||
const fileInfo = await Deno.lstat(path).catch((_e) => undefined);
|
||||
if (fileInfo && fileInfo.isFile) {
|
||||
userConfigPath = path;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user