sync output of sudo messaging
This commit is contained in:
parent
827480f06b
commit
12e4c8a05e
@ -389,7 +389,7 @@ module Cask
|
||||
end
|
||||
|
||||
def uninstall_pkgutil(*pkgs, command: nil, **_)
|
||||
ohai "Uninstalling packages with sudo; the password may be necessary:"
|
||||
ohai "Uninstalling packages with `sudo` (which may request your password)..."
|
||||
pkgs.each do |regex|
|
||||
::Cask::Pkg.all_matching(regex, command).each do |pkg|
|
||||
puts pkg.package_id
|
||||
|
||||
@ -35,7 +35,7 @@ module Cask
|
||||
private
|
||||
|
||||
def run_installer(command: nil, verbose: false, **_options)
|
||||
ohai "Running installer for #{cask} with sudo; the password may be necessary."
|
||||
ohai "Running installer for #{cask} with `sudo` (which may request your password)..."
|
||||
unless path.exist?
|
||||
pkg = path.relative_path_from(cask.staged_path)
|
||||
pkgs = Pathname.glob(cask.staged_path/"**"/"*.pkg").map { |path| path.relative_path_from(cask.staged_path) }
|
||||
|
||||
@ -25,7 +25,7 @@ module Cask
|
||||
full_paths = remove_nonexistent(paths)
|
||||
return if full_paths.empty?
|
||||
|
||||
ohai "Changing ownership of paths required by #{@cask} with sudo; the password may be necessary."
|
||||
ohai "Changing ownership of paths required by #{@cask} with `sudo` (which may request your password)..."
|
||||
@command.run!("/usr/sbin/chown", args: ["-R", "--", "#{user}:#{group}", *full_paths],
|
||||
sudo: true)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user