Skip to content

Commit 12e4c8a

Browse files
sync output of sudo messaging
1 parent 827480f commit 12e4c8a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Library/Homebrew/cask/artifact/abstract_uninstall.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def uninstall_script(directives, directive_name: :script, force: false, command:
389389
end
390390

391391
def uninstall_pkgutil(*pkgs, command: nil, **_)
392-
ohai "Uninstalling packages with sudo; the password may be necessary:"
392+
ohai "Uninstalling packages with `sudo` (which may request your password)..."
393393
pkgs.each do |regex|
394394
::Cask::Pkg.all_matching(regex, command).each do |pkg|
395395
puts pkg.package_id

Library/Homebrew/cask/artifact/pkg.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def install_phase(**options)
3535
private
3636

3737
def run_installer(command: nil, verbose: false, **_options)
38-
ohai "Running installer for #{cask} with sudo; the password may be necessary."
38+
ohai "Running installer for #{cask} with `sudo` (which may request your password)..."
3939
unless path.exist?
4040
pkg = path.relative_path_from(cask.staged_path)
4141
pkgs = Pathname.glob(cask.staged_path/"**"/"*.pkg").map { |path| path.relative_path_from(cask.staged_path) }

Library/Homebrew/cask/staged.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def set_ownership(paths, user: T.must(User.current), group: "staff")
2525
full_paths = remove_nonexistent(paths)
2626
return if full_paths.empty?
2727

28-
ohai "Changing ownership of paths required by #{@cask} with sudo; the password may be necessary."
28+
ohai "Changing ownership of paths required by #{@cask} with `sudo` (which may request your password)..."
2929
@command.run!("/usr/sbin/chown", args: ["-R", "--", "#{user}:#{group}", *full_paths],
3030
sudo: true)
3131
end

0 commit comments

Comments
 (0)