From 1b6237145591b02c1e15cec233b8f6fca6a38475 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Mon, 15 Jul 2024 11:40:14 -0400 Subject: [PATCH] cmd/update: use `ShellCommand` --- Library/Homebrew/cmd/update.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index fb486425e4..b36f7776c9 100644 --- a/Library/Homebrew/cmd/update.rb +++ b/Library/Homebrew/cmd/update.rb @@ -2,10 +2,13 @@ # frozen_string_literal: true require "abstract_command" +require "shell_command" module Homebrew module Cmd class Update < AbstractCommand + include ShellCommand + cmd_args do description <<~EOS Fetch the newest version of Homebrew and all formulae from GitHub using `git`(1) and perform any necessary migrations. @@ -23,9 +26,6 @@ module Homebrew switch "-d", "--debug", description: "Display a trace of all shell commands as they are executed." end - - sig { override.void } - def run = raise_sh_command_error! end end end