Skip to content

Commit

Permalink
Look for certificates in valet linux config directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshulse committed Nov 4, 2024
1 parent 7252168 commit 1b6c3dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,10 @@ function determineDevelopmentEnvironmentConfigPath(): string|undefined {
if (fs.existsSync(valetConfigPath())) {
return valetConfigPath()
}

if (fs.existsSync(valetLinuxConfigPath())) {
return valetLinuxConfigPath()
}
}

/**
Expand Down Expand Up @@ -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')
}

0 comments on commit 1b6c3dc

Please sign in to comment.