Skip to content

Commit 7c0ced3

Browse files
authored
fix: detect pg_ctl exists instead of bin dir (#144)
1 parent 9ff0024 commit 7c0ced3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embedded_postgres.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (ep *EmbeddedPostgres) downloadAndExtractBinary(cacheExists bool, cacheLoca
152152
mu.Lock()
153153
defer mu.Unlock()
154154

155-
_, binDirErr := os.Stat(filepath.Join(ep.config.binariesPath, "bin"))
155+
_, binDirErr := os.Stat(filepath.Join(ep.config.binariesPath, "bin", "pg_ctl"))
156156
if os.IsNotExist(binDirErr) {
157157
if !cacheExists {
158158
if err := ep.remoteFetchStrategy(); err != nil {

0 commit comments

Comments
 (0)