From 1b6c3dc9fadf76cbadf74d2cbba277c9f07c1b71 Mon Sep 17 00:00:00 2001 From: James Hulse Date: Tue, 5 Nov 2024 12:00:53 +1300 Subject: [PATCH] Look for certificates in valet linux config directory --- src/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/index.ts b/src/index.ts index 75d8965..78d8907 100644 --- a/src/index.ts +++ b/src/index.ts @@ -583,6 +583,10 @@ function determineDevelopmentEnvironmentConfigPath(): string|undefined { if (fs.existsSync(valetConfigPath())) { return valetConfigPath() } + + if (fs.existsSync(valetLinuxConfigPath())) { + return valetLinuxConfigPath() + } } /** @@ -627,3 +631,10 @@ function herdWindowsConfigPath(): string { function valetConfigPath(): string { return path.resolve(os.homedir(), '.config', 'valet') } + +/** + * Valet Linux's configuration directory. + */ +function valetLinuxConfigPath(): string { + return path.resolve(os.homedir(), '.valet') +} \ No newline at end of file