mirror of
https://github.com/bitwarden/server.git
synced 2024-12-01 13:43:23 +01:00
Return Non-Zero Exit Code On Failure
This commit is contained in:
parent
fd8c1aae02
commit
bac6b5f353
@ -9,7 +9,7 @@ internal class Program
|
||||
}
|
||||
|
||||
[DefaultCommand]
|
||||
public void Execute(
|
||||
public int Execute(
|
||||
[Operand(Description = "Database connection string")]
|
||||
string databaseConnectionString,
|
||||
[Option('r', "repeatable", Description = "Mark scripts as repeatable")]
|
||||
@ -18,7 +18,7 @@ internal class Program
|
||||
string folderName = MigratorConstants.DefaultMigrationsFolderName,
|
||||
[Option('d', "dry-run", Description = "Print the scripts that will be applied without actually executing them")]
|
||||
bool dryRun = false
|
||||
) => MigrateDatabase(databaseConnectionString, repeatable, folderName, dryRun);
|
||||
) => MigrateDatabase(databaseConnectionString, repeatable, folderName, dryRun) ? 0 : 1;
|
||||
|
||||
private static bool MigrateDatabase(string databaseConnectionString,
|
||||
bool repeatable = false, string folderName = "", bool dryRun = false)
|
||||
|
Loading…
Reference in New Issue
Block a user