cask: add password warning for pkg uninstall

This commit is contained in:
nandahkrishna 2021-03-25 21:10:01 +05:30
parent 679dbea79f
commit 94737ef41d
No known key found for this signature in database
GPG Key ID: 067E5FCD58ADF3AA

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