mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-14 04:16:06 +00:00
fix(backup): guard nil context in checkPgDump preflight
This commit is contained in:
1 parent
7d6e12e406
commit
92ee45fe06
1 file changed
+3
@@ -84,6 +84,9 @@ func RunPreflight(ctx context.Context, dsn, dataDir, workspace string) *Prefligh
|
||||
}
|
||||
|
||||
func checkPgDump(ctx context.Context) PreflightCheck {
|
||||
if ctx == nil {
|
||||
ctx = context.Background()
|
||||
}
|
||||
path, err := exec.LookPath("pg_dump")
|
||||
if err != nil {
|
||||
return PreflightCheck{
|
||||
|
||||
Reference in new issue
Block a user