brew-postgresql-upgrade-database: abort upgrade if pg_upgrade fails

* Use dedicated safe_system to raise exception

Closes #31175.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
master
Hugo Hache 2018-08-16 12:05:25 +02:00 committed by Dominyk Tiller
parent d647f1e2eb
commit 2507b57357
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6
1 changed files with 1 additions and 1 deletions

View File

@ -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,