From 2507b573573438cbc825f26b6176f21d829e461f Mon Sep 17 00:00:00 2001 From: Hugo Hache Date: Thu, 16 Aug 2018 12:05:25 +0200 Subject: [PATCH] brew-postgresql-upgrade-database: abort upgrade if pg_upgrade fails * Use dedicated safe_system to raise exception Closes #31175. Signed-off-by: Dominyk Tiller --- cmd/brew-postgresql-upgrade-database.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/brew-postgresql-upgrade-database.rb b/cmd/brew-postgresql-upgrade-database.rb index 0feb151eaa8..6bd2e079780 100755 --- a/cmd/brew-postgresql-upgrade-database.rb +++ b/cmd/brew-postgresql-upgrade-database.rb @@ -65,7 +65,7 @@ begin initdb_run = true (var/"log").cd do - system "#{bin}/pg_upgrade", + safe_system "#{bin}/pg_upgrade", "-r", "-b", old_bin, "-B", bin,