Merge pull request #10936 from nandahkrishna/cask-password-message

cask: add password warning for pkg uninstall
This commit is contained in:
Nanda H Krishna 2021-03-27 02:32:32 +05:30 committed by GitHub
commit c25ce7099c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,7 +312,7 @@ module Cask
end
def uninstall_pkgutil(*pkgs, command: nil, **_)
ohai "Uninstalling packages:"
ohai "Uninstalling packages; your password may be necessary:"
pkgs.each do |regex|
::Cask::Pkg.all_matching(regex, command).each do |pkg|
puts pkg.package_id