Skip to content

Commit

Permalink
Consider non-english locale
Browse files Browse the repository at this point in the history
  • Loading branch information
SIkebe committed Feb 5, 2020
1 parent a128e9d commit e92dbea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GitBucket.Service/BackupService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private bool PgDumpAvailable(BackupOptions options)
var output = process.StandardOutput.ReadToEnd();
process.WaitForExit();

if (process.ExitCode != 0 || !output.Contains("pg_dump dumps a database as a text file", StringComparison.OrdinalIgnoreCase))
if (process.ExitCode != 0 || !output.Contains("pg_dump [OPTION]... [DBNAME]", StringComparison.OrdinalIgnoreCase))
{
_console.WriteWarnLine($"Cannot found valid pg_dump.");
return false;
Expand Down

0 comments on commit e92dbea

Please sign in to comment.