From 8123eba9a7163298256c330f3b11e98bf8b3f4d7 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 31 Aug 2020 02:21:20 +0200 Subject: [PATCH] Fix code style for commands. --- cmd/aspell-dictionaries.rb | 2 ++ cmd/postgresql-upgrade-database.rb | 14 ++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/cmd/aspell-dictionaries.rb b/cmd/aspell-dictionaries.rb index 27f3bbfe9df..0721062830d 100755 --- a/cmd/aspell-dictionaries.rb +++ b/cmd/aspell-dictionaries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "cli/parser" require "open-uri" require "resource" diff --git a/cmd/postgresql-upgrade-database.rb b/cmd/postgresql-upgrade-database.rb index 61e85e80945..df16f0b8a7a 100755 --- a/cmd/postgresql-upgrade-database.rb +++ b/cmd/postgresql-upgrade-database.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "cli/parser" require "open-uri" require "resource" @@ -124,12 +126,12 @@ module Homebrew ohai "Migrating and upgrading data..." (var/"log").cd do safe_system "#{bin}/pg_upgrade", - "-r", - "-b", old_bin, - "-B", bin, - "-d", old_datadir, - "-D", datadir, - "-j", Hardware::CPU.cores.to_s + "-r", + "-b", old_bin, + "-B", bin, + "-d", old_datadir, + "-D", datadir, + "-j", Hardware::CPU.cores.to_s end upgraded = true