Add message to set_ownership

This commit is contained in:
commitay 2018-04-07 21:39:46 +10:00
parent 94c0d833c3
commit 7f7eb7e6cd

View File

@ -33,6 +33,7 @@ module Hbc
def set_ownership(paths, user: current_user, group: "staff")
full_paths = remove_nonexistent(paths)
return if full_paths.empty?
ohai "Changing ownership of paths required by #{@cask}; your password may be necessary"
@command.run!("/usr/sbin/chown", args: ["-R", "--", "#{user}:#{group}"] + full_paths,
sudo: true)
end